13th Aug 2021, 12:14 PM
Wisdom Ademiju
13 Réponses
+ 7
x = input("separate values by comma: ") l=x.split(",")
13th Aug 2021, 12:25 PM
Shadoff
Shadoff - avatar
+ 2
What input are you trying to provide to your program?
13th Aug 2021, 12:19 PM
Abhay
Abhay - avatar
+ 2
When splitted to a list, you still need to cast every element to integer.
13th Aug 2021, 12:28 PM
Lisa
Lisa - avatar
+ 1
Abhay all it does is take in input of number of days and give output in hours
13th Aug 2021, 12:20 PM
Wisdom Ademiju
+ 1
Wisdom Ademiju what do you mean by "code not accepting list"?
13th Aug 2021, 12:21 PM
Abhay
Abhay - avatar
+ 1
Abhay it accepts only one input I'm trying to make it accept a list of days
13th Aug 2021, 12:22 PM
Wisdom Ademiju
+ 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
14th Aug 2021, 4:33 AM
Bob_Li
Bob_Li - avatar
+ 1
Bob_Li 🔥🔥10× better than mine I'm confused as hell tho😂😂
14th Aug 2021, 6:05 AM
Wisdom Ademiju
0
Lisa 🤔🤔thanks for the enlightenment :)
13th Aug 2021, 1:23 PM
Wisdom Ademiju
0
Abhay lol Yeah
13th Aug 2021, 1:34 PM
Wisdom Ademiju
0
Shadoff thanks bro😊
13th Aug 2021, 1:35 PM
Wisdom Ademiju
0
Me too. I just wish that Sololearn input method is better.
14th Aug 2021, 6:08 AM
Bob_Li
Bob_Li - avatar
0
Bob_Li yeah😞
14th Aug 2021, 8:14 AM
Wisdom Ademiju