Assignment

If you are a C or Java programmer, you may be used to defining all the variables at the start of a programme, defining their type. I can assign a value to a variable using the = for assignment. I can then use the command print(variable) to see what values I have.

C:\Users\JohnO>python
Python 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> a=400
>>> print(a)
400
>>>