Variable Assignment and Basic Calculations#
Learning objectives#
After working through this topic, you should be able to:
Assign values to variables in Python
Do simple calculations with numbers and variables
Materials#
Video with English subtitles:
Download the slides.
Video with German subtitles:
(turn subtitles on in the bottom right corner of the video)
If you want to get a deeper understanding of the differences between variables and values, you may find it helpful to run little code snippets through the Python Tutor. It will visualise what happens in Python’s memory when you execute a piece of code.