0
Code Coach ballpark problem
Can't pass the test case 4 rest is ok. This is my code.... def percentage(percent, whole): return (percent * whole) / 100.0 order=input("").split(" ") total=0 for i in order: if i == "Pizza": total+= 6 elif i == "Nacho": total+= 6 elif i == "Water": total+= 4 elif i == "Cheeseburger": total+= 10 elif i == "Coke": total+= 5 else: total+=5 print (total+percentage(7,total))
2 Answers
+ 1
Yes it seems already solved but there was minor error coz of which test case 4 was not solved but thanks to Kuba SiekierzyÅski and šš¢š¢ššØ šš”šš²šš„ for the guidance
0
Seems to be already solved (if anybody reads this).