How to take input (integers) for making a list? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to take input (integers) for making a list?

I mean, what the code for that..and how does it works? For eg, if i enter 1 2 3 4 5..in the terminal, it should make a list like this>> [1,2,3,4,5]

28th Jun 2019, 10:58 AM
Amit Dubey
Amit Dubey - avatar
2 Answers
+ 2
Well, this code works fine..but i asked for an explanation about what's going on in the code.. So plz help me with that if you can.. ~ swim ~
28th Jun 2019, 11:49 AM
Amit Dubey
Amit Dubey - avatar
+ 2
Ahh, so that's how it works. Thank you so much for helping me out..😊 ~ swim ~
28th Jun 2019, 11:59 AM
Amit Dubey
Amit Dubey - avatar