+ 1
Code Coach : Hovercraft Can someone please tell me why is this not showing correct answer?
sold = int(input()) cost = (sold * 3000000 ) if cost > 21000000: print('Loss') if cost < 21000000: print('Profit') if cost == 21000000: print('Broke Even')
3 Respostas
+ 3
how if cost > 21,000,000 is a loss ? Maybe you mixed up things due to confusing variable names !
+ 2
The costs you have had for a hovercraft are fix as well as insurence and show in the task descroption. With these data and the number of sold pieces you can calculate all together.
+ 1
Abhay ah right .. thanks!! Should've used better variable names