+ 1

"Expected an Intended Code Block".

I keep getting an error called Intended Block. I'm on python What is it and how do I fix it? Oh btw, I'm trying to run an If else codes. Here it is: cost = 1000 budget = 1000 if cost < budget: print ('You are under budget ') else: if cost == budget: print ("You have spent all the money") else: if cost > budget: print ("The item is over your budget.")

27th Nov 2020, 10:40 AM
Aravind-R-C 06
Aravind-R-C 06 - avatar
4 Respostas
+ 3
Slick yess that works. Thanks.
27th Nov 2020, 11:11 AM
Aravind-R-C 06
Aravind-R-C 06 - avatar
+ 2
Slick I didn't think bout that.
27th Nov 2020, 11:11 AM
Aravind-R-C 06
Aravind-R-C 06 - avatar
+ 1
No problem!
27th Nov 2020, 11:19 AM
Slick
Slick - avatar