New User in Python: What went wrong?

Bubba bub at joos.us
Wed Jan 15 19:56:55 CET 2003


On Wed, 15 Jan 2003 18:48:16 GMT, "news.verizon.net"
<vze33v6m at verizon.net> wrote:
try

print "12*4 =" ,12*4

>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





More information about the Python-list mailing list