May-21-2024, 02:48 PM
(This post was last modified: May-21-2024, 03:08 PM by deanhystad.)
You normally don't type code like this in python. Normally you write code to a file and pass the filename as an argument to python.
myscript.py
myscript.py
x = 5 if x < 10: print("Smaller") # Must indent + 1 level if x > 20: # Must indent -1 level print("Bigger") print("finis")And you run like this:
Output:python myscript.py