New User in Python: What went wrong?

news.verizon.net vze33v6m at verizon.net
Wed Jan 15 19:48:16 CET 2003


SyntaxError: invalid syntax
  File "C:/Python/test.py", line 10
    print "12*4 =" 12*4
                         ^
SyntaxError: invalid syntax


------------------------------
The actual Program: 

#this is not quite true outside of USA
#and is base on my dim memorie of my younger years
print "Firsttish Grade"
print "1+1 =", 1+1
print "2+4 =", 2+4
print "5-2 =", 5-2
print
print "Thirdish Grade"
print "243-23 =", 243 - 23
print "12*4 =" 12*4
print "12/3 =" 12/3
print "13/3 =",13/3," R ",13%3
print
print "Junior High"
print "123.56-63.12 =",123.56-62.12
print "(4+3)*2 =",(4+3) *2
print "4+3*2 =", 4+3*2
print "3**2 =", 3**2
print


==============
What did I do wrong? Pls excuse my obvious stupid questions as I am just a newbe.

Thanks
pavs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20030115/675a7145/attachment.html>


More information about the Python-list mailing list