T

Tanmay • 2.43K Points
Master

Q. What will be the output

Code:
def f1(x): global x x+=1 print(x) f1(15) print("hello")
  • (A) error
  • (B) hello
  • (C) 16 hello
  • (D) none
  • Correct Answer - Option(A)
  • Views: 128
  • Filed under category Python

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics