Q. What does __name__ == ‘__main__’ check?
Solution:
__name__ == ‘__main__’ checks if the script is run directly, not imported.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
__name__ == ‘__main__’ checks if the script is run directly, not imported.
Strengthen Your Practice with our comprehensive question bank.