Test Index

CBSE Class 12 Computer Science 2024 Paper Set 4 Get it on Google PlayDownload on the App Store

© examsnet.com
Question : 26 of 35
Marks: +1, -0
Write the output on execution of the following Python code :
S="Racecar Car Radar"
L=S.split()
for W in L :
x=W.upper()
if x==x[::-1]:
for I in x:
print(I,end="*")
else:
for I in W:
print(I,end="#")
print()
Advertisements
Go to Question: