+ 1
Why this is error?
I don't understand why this is happening can anyone help me with this? ``` wallet = 1200 product_fund = 500 print ("your money was: ",wallet) print ("product fund:",product_fund) if wallet > product_fund: print ("your money now is: ",wallet-product_fund) elif wallet<product_fund: print ("!!ERROR:you don't have enough money in your wallet!!") else: print ("ERROR: you don't have money now") ```
10 Respuestas
+ 4
https://code.sololearn.com/c417oShlU5fZ/?ref=app
Here is the fix
Like I said in the comment before, you must indent the elif clause (put two spaces at the beginning in the line after elif clause)
+ 6
What is the error you are getting?
Save code and share link.. how you indended in code is important in python..!!
+ 5
Hello!
You should share a link of a private code instead of adding it in the description, it is more readable and understandable
+ 4
Look at elif clause. You must indent the line under it. So then it will work.
+ 4
Thank you so much 🙏🏽
+ 3
Your welcome… keep happy-coding! ;)
0
you forgot to indent the line of code under elif
0
In the elif statement there expects an Inendation