Advertisements
Advertisements
Question
Predict the output of the following code:
def Changer (P, Q=10):
P=P/Q
Q=P%Q
return P
A=200
B=20
A=Changer(A,B)
print(A,B,sep='$')
B=Changer(B)
print(A,B sep='$', end='# # #')One Line Answer
Advertisements
Solution
10.0$20
10.0$2.0###shaalaa.com
Arguments and Parameters
Is there an error in this question or solution?
