You should put this in all your Python scripts | if __name__ == '__main__': ... Share: Download MP3 Similar Tracks 5 Good Python Habits Indently If __name__ == '__main__' for Python Beginners Indently Python Generators mCoding Python dataclasses will save you HOURS, also featuring attrs mCoding If __name__ == "__main__" for Python Developers Python Simplified Avoid These BAD Practices in Python OOP ArjanCodes 25 nooby Python habits you need to ditch mCoding The Fastest Way to Loop in Python - An Unfortunate Truth mCoding Python Tutorial: if __name__ == '__main__' Corey Schafer This Is Why Python Data Classes Are Awesome ArjanCodes PLEASE Use These 5 Python Decorators Tech With Tim 10 Python Tips and Tricks For Writing Better Code Corey Schafer Learn Python OOP in under 20 Minutes Indently Modern Python logging mCoding 10 Important Python Concepts In 20 Minutes Indently Python Tutorial: Variable Scope - Understanding the LEGB rule and global/nonlocal statements Corey Schafer Python Operators for Beginners | Python tutorial Dave Gray 21 MORE nooby Python habits mCoding Python Functions | Python Tutorial for Absolute Beginners #1 Programming with Mosh Class Methods in Python | How to add Methods in Class | Python Tutorials for Beginners #lec87 Jenny's Lectures CS IT