Not exactly an issue I have but rather a lack of understanding on a small concept.
The example provided for this section (https://www.codecademy.com/courses/python-beginner-en-IZ9Ra/0/4?curriculum_id=4f89dab3d788890003000096) is this:
def count_small(numbers): total = 0 for n in numbers: if n < 10: total = total + 1 return total lost = [4, 8, 15, 16, 23, 42] small = count_small(lost) print small
What I cannot understand is that the argument for the count_small function was 'number', yet we were allowed to input the list 'lost' in place of the number argument within the count_small function (when the 'small' variable was created).
This was explained earlier in the course that such a thing was allowed, but I didn't understand why, and I couldn't find that previous explanation's location anyway. Could someone please explain why Python allows this to occur?