News

A Python list is less suitable when: You want to find an item in a list but you don’t know its position. You can do this with the .index() property.
Note that we’ve already used Python’s list comprehension in the broken example above, to invoke the list. It’s the expression in the square brackets [], and is basically a short form for loops.