0

Hovercrafts code playgrounds

Hello, I am doing this code and the four case that I cannot see it comes as an error could anyone give me a clue of why this is happening? Thank you :) hover = int(input()) cost = hover * 2000000 insu = 1000000 sell = hover * 3000000 totalc = cost + insu if totalc < sell: print("Profit") elif totalc > sell: print("Loss") else: print("Broke Even")

27th Feb 2020, 10:32 PM
Fabricio Lucas Dimónaco
Fabricio Lucas Dimónaco - avatar
2 ответов
+ 1
What result do you need? For any hover> 1, you get 'profit', with hover = 1, 'broke even' when hover <1, ​​'loss' and this condition is satisfied when hover = float (input ())
27th Feb 2020, 11:28 PM
Vitaly Sokol
Vitaly Sokol - avatar
+ 1
it was case number 4 but it was lock, manage to do it in the end thou. thank you!
28th Feb 2020, 1:40 PM
Fabricio Lucas Dimónaco
Fabricio Lucas Dimónaco - avatar