For Loop idioms

Practiced the examples in the idioms lecture.