πŸ“Š Problem Solving and Python Programming
Q. (1,2) print(total)
  • (A) error
  • (B) 7
  • (C) 8
  • (D) 15
πŸ’¬ Discuss
βœ… Correct Answer: (B) 7

Explanation: in the code shown above, the variable ‘x’ has been declared as a global variable under both the functions f1 and f2.


Explanation by: Mr. Dubey
in the code shown above, the variable ‘x’ has been declared as a global variable under both the functions f1 and f2.

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
533
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
91%
Success Rate