[Pythonmac-SIG] "elif" problem
Doychin Stanchev
doichin_s at gmx.de
Wed Aug 10 16:43:16 CEST 2011
Hi guys,
I am really new to the programming and I decided to start with python. I found a book called "beginning python" and started to learn, but I had a problem with the command "elif". I am running 10.7 and python 2.72. Here is my problem:
>>> milk_price = 1.50
>>> if milk_price < 1.25:
print "Buy two cartons of milk, they're on sale"
elif milk_price < 2.00:
SyntaxError: invalid syntax
I'll appreciate very much your help,
Thank you,
Doychin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20110810/649e3bef/attachment.html>
More information about the Pythonmac-SIG
mailing list