# # purpose: a short Python demo program # rather silly too. # # written by e.bonakdarian sept 2010 # print "My name is Esmail" print "I am your instructor" miles = 10 # descriptive variable names, always lower case KM_PER_MILE = 1.609 # notice, CONSTANTS go in UPPER CASE total_km = miles * KM_PER_MILE # spaces before/after operators # break up long lines into two - try to keep it below 80 # characters per line, see PEP 8 # http://www.python.org/dev/peps/pep-0008/ # print "I ran", miles, "miles last Sunday ... " print "This is ", total_km, "kilometers .. phew I'm tired."