Lets create and run a very small python program
-
Create and "assignments" folder, navigate to it, and create an empty file called
hello.pycd ~/Development mkdir assignments cd assignmets touch hello.py -
Put this simple python program into hello.py
print("Hello, im a python program")
-
Run
hello.pypython3 hello.py
-
In your assignments folder, create a new python program called "aplusb.py"
a = 5 b = 7 print("The sum of a and b is" + str(a + b)) -
Run this program