Computer Science, asked by vasurgukt6337, 10 months ago

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 Anonymous
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