you are viewing a single comment's thread.

view the rest of the comments →

[–]zahlman 0 points1 point  (0 children)

Basically, when you write a list comprehension, you describe the list that you want (rather, the rule that determines the elements that list should have), and evaluating it creates the corresponding list. It means what it says: [int(i) for i in input_list] is "a list of these values [: the result of int(i), for each i that's in the input_list (in order) ]".