I donā€™t know where I went wrong can you help me? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
+ 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