Checkpoint 4.6.1.
- 10
- Iteration by item will process once for each item in the sequence.
- 11
- The blank is part of the sequence.
- 12
- Yes, there are 12 characters, including the blank.
- Error, the for statement needs to use the range function.
- The for statement can iterate over a sequence item by item.
How many times is the word HELLO printed by the following statements?
s = "python rocks"
for ch in s:
print("HELLO")