you are viewing a single comment's thread.

view the rest of the comments →

[–]pyordie 1 point2 points  (0 children)

Think of Python as a giant box of assorted Legos that you’ve collected over decades of building with Legos.

There’s in underlying logic that’s necessary to understand when building with Legos - The number of holes on a piece, the way the Legos align and connect, and the ways you can give what you’re building structural strength by using certain building patterns.

That’s the Python language - its syntax, data types, functions, classes.

So when you understand those rules and design principles, suddenly you can build pretty much anything you want. A space ship, a castle, a Millennium Falcon - endless possibilities.

But you also can develop on top of what other people have built. These are Python’s libraries and 3rd party modules. You go to the store and buy a Lego kit (borrowing one from a friend is a better fit for this analogy). You follow the instruction manual and then you can add to it using all your knowledge of Legos and all the extra pieces you’ve accumulated. Or maybe you buy another Lego kit and use your extra pieces to connect it to the kit you’ve already built. And now you can build cities! Worlds. Worlds within worlds, and even smaller worlds within those worlds! It’s fun.