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 Antworten
+ 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).