2. Find and write the output of the following python code:
def fun(s):
n = len(s)
m=""
for i in range(0, n):
if (s[i] >= 'a' and s[i] <= 'm'):
m = m + s[i].upper()
elif (s[i] >= 'n' and s[i] <= 'z'):
m = m + s[i-1]
elif (s[i].isupper():
m = m + s[i].lower
else:
m= m + '#'
print(m)
fun('Abc@com')
Answers
Answered by
1
Answer:
Explanation:
this program has a error
Attachments:
Similar questions
Math,
2 months ago
Social Sciences,
2 months ago
Math,
2 months ago
English,
5 months ago
Accountancy,
11 months ago
Physics,
11 months ago