Python Tutorial: if __name__ == '__main__'

In this video, we will take a look at a common conditional statement in Python: if __name__ == '__main__': This conditional is used to check whether a python module is being run directly or being imported. ✅ Become a Channel Member: ✅ One-Time Contribution Through PayPal: ✅ Cryptocurrency...

Intermediate - 9 min - Software & IT - Corey Schafer

The full course: Learn Python free

What you'll need

Books

  1. Python Crash Course by Eric Matthes - View on Amazon
  2. Automate the Boring Stuff with Python by Al Sweigart - View on Amazon
  3. Head First Python by Paul Barry - View on Amazon
  4. Fluent Python by Luciano Ramalho - View on Amazon
  5. Learning Python by Mark Lutz - View on Amazon
  6. Python For Data Analysis by Wes McKinney - View on Amazon

Next lessons