Computer Science, asked by nandhusree1975, 5 months ago

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 Aryansingh001
1

Answer:

Explanation:

this program has a error

Attachments:
Similar questions