p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning Python: Using Python 2.6 and Python 3.1 (http://p2p.wrox.com/forumdisplay.php?f=545)
-   -   code shows error (http://p2p.wrox.com/showthread.php?t=91997)

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

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:48 PM.

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