View Single Post
  #1 (permalink)  
Old January 21st, 2014, 10:28 PM
Randhir Randhir is offline
Registered User
Points: 10, Level: 1
Points: 10, Level: 1 Points: 10, Level: 1 Points: 10, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2014
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default code shows error

the code given in python chapter 4 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 give in the but after this code it shows the error
SyntaxError : invalid syntax (<pyshell#3>, line 3 )
Reply With Quote
The Following User Says Thank You to Randhir For This Useful Post: