+ 3

Can anyone help me. In codecoach even after right output it is showing failed.

In the codecoach I am writing codes and checking them. The output of my code matches the desired output but still it is showing result failed. My code print("Financial Management") h=10 print("enter a number between 1-11") sales = int(input("number of hovercrafts sold.\n")) tcp = 2000000*10+1000000 sp = 3000000 tsp= sales*sp if (tsp>tcp): print("profit") elif (tsp<tcp): print("loss") elif (tsp==tcp): print("broke even") else : print("error")

3rd Sep 2020, 6:24 AM
Dirgh
Dirgh - avatar
8 Answers
+ 3
Yes only the first two cases were visible and my code output was met for both of them
3rd Sep 2020, 10:01 AM
Dirgh
Dirgh - avatar
+ 3
Yeah i have given the choice itself and can you like it my question plzz
3rd Sep 2020, 10:56 AM
Dirgh
Dirgh - avatar
+ 2
Dirgh because of string message it shows failed
5th Sep 2020, 5:00 AM
vaibhav
vaibhav - avatar
+ 2
Dirgh working fine 🙄 sales = int(input()) tcp = 2000000*10+1000000 sp = 3000000 tsp= sales*sp if (tsp>tcp): print("Profit") elif (tsp<tcp): print("Loss") elif (tsp==tcp): print("Broke Even") else : print("error")
5th Sep 2020, 9:50 AM
vaibhav
vaibhav - avatar
+ 1
test cases not 1. There is 5 test cases. So your code output must fit them too
3rd Sep 2020, 6:31 AM
Shadoff
Shadoff - avatar
+ 1
Can you put the link to your code?
3rd Sep 2020, 10:51 AM
Shadoff
Shadoff - avatar
0
After removing the string also it is not working
5th Sep 2020, 5:21 AM
Dirgh
Dirgh - avatar