How to solve hovercraft practice? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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