Open In App

Python | Namespaces and Scope Quiz | Question 17

Which of the following is true regarding the __main__ block in Python?

(A)



It is executed when the program is imported as a module

(B)



 It is executed when the program is run as the main program

(C)

It is used to define main functions

(D)

It is executed when a function is defined

Answer: (B)
Explanation:
Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :
Uncategorized