मराठी

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) - Computer Science (Python)

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$$15

  • 15$$25

  • 25$$25

  • 2525$$

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
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2024-2025 (March) Set 4
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×