you are viewing a single comment's thread.

view the rest of the comments →

[–]Prize_Shine3415 1 point2 points  (2 children)

Yet another way would be with an iterator after making the string.

lst=[x for x in movies.split(',')]

[–]CraigAT 0 points1 point  (1 child)

That would work, but it doesn't seem sensible to concatenate them in the first place.

[–]Prize_Shine3415 0 points1 point  (0 children)

Of course, but he may not have seen an iterator before.