This is using the python REPL. We will do this from the command line to illustrate the interactive nature of python code.
Open an Anaconda command prompt (if you use Anaconda on Windows).
Run the following from the command line:
python3
This should put you in a python prompt looks something like this:
>>>
Type in the following code at the python prompt:
print("Hello world!")
a = 10
b = 3.1
c = "hello world"
Note that our variables can be evaluated at the repl. Try the following commands.
a # should return 10
b # should return 3.1
c # should return "hello world"
Try some arithmetic operations with your variables, like this:
a + b
a * b
a / b
You can exit with CTRL-D