Now you know how to use different types of variables. But have you wandered what a variable really is? In this section you’ll learn a more theoretical topic: Computer Memory. This topic relates not only to Python but to all programming languages!
This material won’t let you write any new code. But, it will let you understand your code better and become a better programmer.
- Watch this short video: https://www.coursera.org/learn/learn-to-program/lecture/bI05C/python-and-computer-memory
- Read about variables on wikipedia
- Go to PythonTutor. Switch python version to 3.6. There is another dropdown further down the page, switch _inline primitives & nested objects [default] _to render all objects on the heap (Python/Java). Define different types of variables and check how they’re presented in the memory.