Re: [Pythonmac-SIG] "elif" problem

2011-08-10 Thread Henning Hraban Ramm
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

Re: [Pythonmac-SIG] "elif" problem

2011-08-10 Thread Chris Weisiger
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

[Pythonmac-SIG] "elif" problem

2011-08-10 Thread Doychin Stanchev
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