0

[Solved] Ballpark orders challenge doesn’t work...

I have just tried the challenge of ballpark orders, but my code bit doesn’t work out for the 3rd 4th and 5th tests... Plz help! https://code.sololearn.com/cyzZ6o2QZNzF/?ref=app

13th Sep 2020, 1:08 PM
Wenkai Qu
Wenkai Qu - avatar
7 ответов
0
I think you only need to round upto 2 decimal points... QWKKK Try this print(f'{"%.2f"}'%round(money *(1+0.07),2))
13th Sep 2020, 1:55 PM
Jayakrishna 🇮🇳
13th Sep 2020, 1:34 PM
₦ ₳ ₵ Ɇ Ɽ Ø ₦
₦ ₳ ₵ Ɇ Ɽ Ø ₦ - avatar
+ 1
Try the above code
13th Sep 2020, 1:48 PM
₦ ₳ ₵ Ɇ Ɽ Ø ₦
₦ ₳ ₵ Ɇ Ɽ Ø ₦ - avatar
0
Look at input carefully The input starts with 'Pizza And 'Pizza !=Pizza Because of ' at start and end every inputs first and last term becomes undefined and hence to buy coke for it so try this: list = input() list = list.replace("'","") list = list.split(" ") Instead of list =list().split(" ") Hope it helped since I am not pro I cannot check it my self .
13th Sep 2020, 1:28 PM
₦ ₳ ₵ Ɇ Ɽ Ø ₦
₦ ₳ ₵ Ɇ Ɽ Ø ₦ - avatar
0
₦ ₳ ₵ Ɇ Ɽ Ø ₦ Thanks a lot but Im afraid it is not working either...
13th Sep 2020, 1:32 PM
Wenkai Qu
Wenkai Qu - avatar
0
Jayakrishna🇮🇳 you are right! thx a lot
14th Sep 2020, 12:44 PM
Wenkai Qu
Wenkai Qu - avatar
0
You're welcome..
16th Sep 2020, 6:57 PM
Jayakrishna 🇮🇳