p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   BOOK: Beginning Python: Using Python 2.6 and Python 3.1 (http://p2p.wrox.com/book-beginning-python-using-python-2-6-python-3-1-545/)
-   -   code shows error (http://p2p.wrox.com/book-beginning-python-using-python-2-6-python-3-1/91997-code-shows-error.html)

Randhir January 21st, 2014 11:12 PM

code shows error
 
the code given in chapter 4 page 59 shows error. whenever i try to enter the code below it says syntax error
Code:

milk_price = 1.50
if milk_price <1.25:
    print("Buy two cartons of milk,they're on sale")
    elif milk_price < 2.00:

i was suppose to enter the full code given in the book but after this code it shows the error
SyntaxError : invalid syntax (<pyshell#3>, line 3 )


All times are GMT -4. The time now is 12:45 PM.

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.