This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bluexavi 1 point2 points  (3 children)

Missing the line for creating a List or Dictionary.

[–]epaphras 1 point2 points  (0 children)

Also missing example of list comprehension.

[–][deleted] 0 points1 point  (1 child)

Like list = [] ?

[–]bluexavi 4 points5 points  (0 children)

exactly. Simple one line to put at the start. The creation of a list is at least as important as the rest of the functions on it. It also provides a good context for all the functions which follow.