+ 1
Code not accepting list
13 Respostas
+ 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đ