What will be displayed when the following code is executed?
def fun(s):
k=len(s)
m=""
for i in range(0,k):
if s[i].isalpha():
if(s[i].isupper()):
m=m+s[i].lower()
else:
m = m +s[i].upper()
else:
m = m + s[i]
return m
result = fun('CS Preboard 1')
print(result)
Answers
Answered by
2
Explanation:
[Tex]\huge\sf\red{Answer}[/tex]
; while ( number > 0) { number -= 3; System.out.print( number
Similar questions
Math,
2 months ago
Biology,
2 months ago
Math,
5 months ago
Accountancy,
5 months ago
Math,
11 months ago
Social Sciences,
11 months ago
Social Sciences,
11 months ago