0

How to solve hovercraft practice?

i am trying to solve counting profit of hovercarfts. But i dont know where i am doing mistake😥. The problem is almost solve but not the condition 3,4. Here is my code👇 #solotion for hovercraft code sold = int(input()) craft = 10 cost = 2000000 insure = 1000000 selling = 3000000 ''' mc is stand for monthley cost while ms is stand for monthley sele ''' mc = cost * craft + insure ms = sold * selling if mc < ms: print ("Profit") elif mc > ms: print ("Loss") else: print ("Broke Even") Update the practice is compleat😃 now update the code. Thanks for guiding

6th Mar 2023, 7:37 AM
Sikandar Ali khan
Sikandar Ali khan - avatar
3 Respostas
+ 6
Pay close attention to what you are meant to output/print. For example: is it "Lose" or "Loss" or "Lost"?
6th Mar 2023, 7:54 AM
Ausgrindtube
Ausgrindtube - avatar
+ 4
Well done! Happy coding!
6th Mar 2023, 11:26 AM
Ausgrindtube
Ausgrindtube - avatar
+ 1
It was "Loss" 😆 thanks now its solve👍
6th Mar 2023, 10:23 AM
Sikandar Ali khan
Sikandar Ali khan - avatar