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

11th Oct 2021, 5:29 PM
D Doyen
D Doyen - avatar
5 Answers
+ 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!
11th Oct 2021, 6:17 PM
Lothar
Lothar - avatar
+ 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
11th Oct 2021, 5:34 PM
Lz1234
+ 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")
13th Oct 2021, 6:40 AM
D Doyen
D Doyen - avatar
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
11th Oct 2021, 6:35 PM
D Doyen
D Doyen - avatar
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")
16th Oct 2021, 9:50 AM
Nwafor Segun Uzochukwu
Nwafor Segun Uzochukwu - avatar