5. Find and write the output of the following Python code:
def Alter(P=25,Q=5):
P=P*Q
Q=P/Q
print P,"#"Q
return Q
A=100
B=200
A=Alter(A,B)
print (A,"S"B)
B=Alter(B)
print (A,"$"B)
A=Alter(A)
print (A,"$",B)
Answers
Answered by
3
Answer:
"Alter" (and any subsequent words) was ignored because we limit queries to 32 words.
Explanation:
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('Gini%Jony')
Answered by
1
Answer:
bla bla bla bla bla bla bla bla bla
Similar questions