+ 1
Code not accepting list
13 Réponses
+ 7
x = input("separate values by comma: ")
l=x.split(",")
+ 2
What input are you trying to provide to your program?
+ 2
When splitted to a list, you still need to cast every element to integer.
+ 1
Abhay all it does is take in input of number of days and give output in hours
+ 1
Wisdom Ademiju what do you mean by "code not accepting list"?
+ 1
Abhay it accepts only one input
I'm trying to make it accept a list of days
+ 1
Ok, I tried to edit your code to work for multiple input. Simplified some things and overly complicated others...
https://code.sololearn.com/cx1zlGvyIneD/?ref=app
+ 1
Bob_Li 🔥🔥10× better than mine
I'm confused as hell tho😂😂
0
Lisa 🤔🤔thanks for the enlightenment :)
0
Abhay lol
Yeah
0
Shadoff thanks bro😊
0
Me too. I just wish that Sololearn input method is better.
0
Bob_Li yeah😞