Lets create and run a very small python program
- Create and "assignments" folder, navigate to it, and create an empty file called
hello.py
cd ~/Development
mkdir assignments
cd assignmets
touch hello.py
- Put this simple python program into hello.py
print "Hello, im a python program"- Run
hello.py
pwd
cd ~/Development/assignments
python 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