I don’t know where I went wrong can you help me? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I don’t know where I went wrong can you help me?

x=0 total=int(input()) price= total*5 taxcut=(price+(price*0.07)) discount=(taxcut -(taxcut*0.1)) if x>1: print(price) else: print(taxcut)

29th Apr 2022, 6:42 PM
Joshua Nochina
3 Answers
+ 3
Your conditions is if x bigger then 1 or not. Also you’ve assigned x staticly to 0. Hence you can only return else statement which is (taxcut)
29th Apr 2022, 10:19 PM
Semih Öztürk
+ 6
What is x for?
29th Apr 2022, 6:54 PM
Oma Falk
Oma Falk - avatar
0
Tqsm
29th Apr 2022, 10:33 PM
Joshua Nochina