780 B
780 B
id, source_exercise_id, title, section, source_path, source_repo, source_commit, student_visible_solution, has_private_solution, skip
| id | source_exercise_id | title | section | source_path | source_repo | source_commit | student_visible_solution | has_private_solution | skip |
|---|---|---|---|---|---|---|---|---|---|
| practical-python-1.20 | 1.20 | Looping over list items | 1.5 Lists | 01_Introduction/05_Lists.md | https://github.com/dabeaz-course/practical-python | 93dca856b41c61a0a0f85ae334116e4c125629ea | false | false | false |
Exercise 1.20: Looping over list items
Source: Practical Python Programming,
01_Introduction/05_Lists.md.
Exercise 1.20: Looping over list items
The for loop works by looping over data in a sequence such as a list.
Check this out by typing the following loop and watching what happens:
>>> for s in symlist:
print('s =', s)
# Look at the output