[Solved] Ballpark orders challenge doesnā€™t work... | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
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 šŸ‡®šŸ‡³