0
I need help fixing this code
I am doing the hovercraft challenge thing and I keep getting an error with this code: sold = (input()) sell_prof = sold * 3000000 minus = (sold * 2000000) + 1000000 total = sell_prof - minus if total > 0: print("Profit") elif total < 0: print("Loss") else: print("Broke Even")
2 odpowiedzi
+ 5
You didn't convert input() to int. input() returns string.
0
i got it to work with another code