+ 1

Ballpark

I don't understand why cannot make run this code https://code.sololearn.com/cK2ga1smIHfZ/?ref=app

2nd Nov 2022, 9:04 PM
Reda Zerghani
Reda Zerghani - avatar
4 Réponses
+ 4
Reda Zerghani , Use order = input().split() instead of order = list(input()) Sample input Pizza Cheeseburger Water Popcorn Sample Output 26.75 https://www.sololearn.com/compiler-playground/c0Vi6Gw1Xe4G
2nd Nov 2022, 9:44 PM
SoloProg
SoloProg - avatar
+ 1
I really don't understand
2nd Nov 2022, 9:13 PM
Reda Zerghani
Reda Zerghani - avatar
+ 1
SoloProg Thank you for you answer it really help ! Could you, please, if it's OK explain me why should us the .split() don't we use that function to split a liste ???
2nd Nov 2022, 10:37 PM
Reda Zerghani
Reda Zerghani - avatar
+ 1
Print the result onto the screen: print(order)
2nd Nov 2022, 11:07 PM
SoloProg
SoloProg - avatar