Who's Monty & what's a White Room got to do with *truly* understanding concepts in #Python#coding?
What’s more challenging in the early days when you learn coding is to join the dots between various topics you learn, viewing them as a coherent set of tools
Monty is the one who’s busy doing things, performing all the actions required in your computer program.
But Monty/the computer program needs some infrastructure to be able to operate.
This infrastructure is the White Room: an empty room with white walls and white ceilings–a blank canvas.
However, the White Room is not entirely empty.
There is a set of shelves on one of the walls where Monty can store things he may need later on.
The shelves are also not entirely empty.
There is a small, red booklet on the bottom shelf with the label “built-in” on it.
This booklet has several things that Monty can start using right away, such as `print()` and `True`.
What happens if you assign data to a name?
>>> my_number = 10
Monty sees assignment operator = and knows what to do. He brings an empty box and sticks a label with `my_number` on it.
He puts the number `10` inside box and places box on 1 of the shelves in the White Room
When Monty sees the keyword `import`, he knows he needs to go for a walk.
He leaves the White Room and walks around the block until he sees a large building. This building is the town’s library.
When he steps inside, he finds himself in a large hall with very high ceilings and bookshelves full of books covering every inch of every wall, from floor to ceiling.
Once he finds the book he's looking for, he takes it with him back to the White Room and places it on one of the shelves in the White Room.
You can read the White Room analogy in full starting from this article:
Now I spend my time:
—> running @codetoday_
—> teaching coding to kids & adults
—> writing articles and books on #coding and #Python
—> creating and running Python courses and workshops (coming soon…)