Q2.Find the output of the following Text="gmail@com"
L=len(Text)
ntext=" "
For i in range (0,L):
If text[i].isupper():
ntext=ntext+text[i].lower()
elif text[i].isalpha():
ntext=ntext+text[i].upper()
else:
ntext=ntext+’bb’
Answers
Answered by
7
html
head
doc type
i in range (0,L):
If text[i].isupper():
ntext=ntext+text[i].lower()
elif text[i].isalpha():
ntext=ntext+text[i].upper()
else:
ntext=ntext+’bb’
Similar questions
English,
5 months ago
Math,
10 months ago
Computer Science,
10 months ago
Computer Science,
1 year ago