Advertisements
Advertisements
प्रश्न
Consider the statements given below and then choose the correct output from the given options:
def Change(N):
N=N+10
print (N,end=‘$$’)
N=15
Change(N)
print(N)पर्याय
25$$1515$$2525$$252525$$
MCQ
Advertisements
उत्तर
25$$15
Explanation:
The value of the formal parameter to the function is incremented by 10 inside the Change() function and printed as 25. Outside the function, the actual value of N is printed, which is 15. Hence, the output is 25$$15.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
