πŸ“Š Python
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
169
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Tanmay
Publisher
πŸ“ˆ
90%
Success Rate