Jan-29-2020, 04:32 PM
(Jan-13-2020, 11:22 AM)Armin Wrote: I understand split nouw but what i can't understand is this part of the code in line 7
“y = [i for i in input “
this part of the code and why this code is there because the program works without this part of the code if we put in line 7 above, for example
y = input('give me a number: ').split(',')
we get the same result. I understand that this is the work of codo o comprehensive list but not understood why it's there"i in i for input " in lijn 7.
Thanks in advance
![Wall Wall](https://python-forum.io/images/smilies/eusa_wall.gif)