What does '__init__.py' do in Python?

If you've read a fair amount of Python code, then you've probably seen this "__init__.py" file pop up quite a few times. It's especially common in larger Python projects. I'm going to breakdown exactly what this file is, when you should use it, and exactly how it works. 🎞 Video Resources 🎞 ⏳...

Intermediate - 13 min - Software & IT - Tech With Tim

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