+ 2

How to input a list in python3?

29th Jun 2019, 1:10 PM
Deepraj Baidya
Deepraj Baidya - avatar
4 odpowiedzi
+ 2
list(input()) will make a list of the given characters.
29th Jun 2019, 1:22 PM
Seb TheS
Seb TheS - avatar
+ 2
list = input("Enter elements").split(',') Then elements must be separated by a ",".
29th Jun 2019, 1:18 PM
Luk
Luk - avatar
+ 2
Luk thanks a lot :)
29th Jun 2019, 1:20 PM
Deepraj Baidya
Deepraj Baidya - avatar
+ 2
Seb TheS Thanks mate
29th Jun 2019, 1:23 PM
Deepraj Baidya
Deepraj Baidya - avatar