Checkpoint 4.12.1.
- string
- Incorrect, that is not the type of the iterable.
- list
- Yes, the iterable is n, and it is a list.
- iterable
- Incorrect, that is not the type of the iterable.
- error, unable to iterate over the object.
- Incorrect, Python can iterate over this type.
What is the type of your iterable?
n = ["word", "phrase", 8, "beam"]
for item in n:
print(item)