R Rati Dubey • 8.55K Points Tutor III Bookmark Embed Report View In MB-Short Q. Which statement is used to define a block of code that runs only when the program is executed directly, not when imported? (A) if __main__ == '__name__': (B) if __name__ == '__main__': (C) main(): (D) run() Correct Answer - Option(B) Views: 11 Filed under category Python Share
Discusssion
Login to discuss.