Predict the output of following code
Text="Python ForMe"
length=len(Text)
newText=""
for i in range(0,length):
if Text[i].isupper():
newText+=Text[i].lower()
elif Text[i].isalpha():
newText+=Text[i].upper()
else:
newText+="ccc"
print(newText)
3
Answers
Answered by
1
Answer:
new text = p ccc ccc ccc ccc ccc ccc fccc ccc mccc
this is the output
Similar questions