+ 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")
7 odpowiedzi
+ 3
Yes only the first two cases were visible and my code output was met for both of them
+ 3
Yeah i have given the choice itself and can you like it my question plzz
+ 2
Dirgh because of string message it shows failed
+ 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")
+ 1
test cases not 1. There is 5 test cases. So your code output must fit them too
+ 1
Can you put the link to your code?
0
After removing the string also it is not working