0
Well I think Dis code needs help from the comunity.
Sanja panic x = int(input()) t = x * 3000000 if t == 21000000: print("Broke Even") if t < 21000000: print("Broke ") else: print("Profit") What is wrong Well I was solving hoverboard code challenge I need you own solution to compare with my own
5 Réponses
+ 4
D Doyen ,
if you really have a problem, we need some more details from you:
▪︎give a clear and complete description about your task
▪︎if your question is related to an exercise in a tutorial, please mention the tutorial name and the lesson number
▪︎if there are error messages please post them here
▪︎give at least one sample with input data and the expected output
thanks for your understanding!
+ 3
You need to write loss not broke
Line 6 neads elif
If you want to make your code neater take away the space of a line before the else
+ 1
I think have solved it
X = int(input())
T = x * 3000000
If T > 21000000
Print("Profit")
Elif T == 21000000
Print ("Broke Even")
Elif T < 21000000
Print ("Loss")
0
Lothar
I need to see aow u solve urs to compare with my own becos that code is checking to cases but did not check the other cases and there is not code error no bug
0
Think this should work
x = int(input())
t = x * 3000000
If t > 21000000:
Print("Profit")
elif t == 21000000:
Print ("Broke even")
else:
Print("Broke")