>>> len(lottery) 6
The function len() can determine not only the length of a string, but also the length of a list - that is, the number of its elements.
len()