Script mode
In interactive mode you interact directly with the interpreter.
>>> miles = 26.2
>>> miles * 1.61
42.182
There are differences between the two modes that can be confunsing.
# calculator.py
miles = 26.2
miles * 1.61 # nothing!
print (miles * 1.61)
Last update: 204 days ago