Am 2011-08-10 um 16:43 schrieb Doychin Stanchev:
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:
>>> mi
It's not clear if you're using proper indentation here. I recommend
putting your code on a paste site (e.g. http://pastebin.com/ ) so we
can see the whitespace properly. Here's a more complete version of
your example, which does work once a line after the elif is added:
http://pastebin.com/4L2wfKd
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:
pri