improved for loop documentation to include list range example

I felt the for loop documentation could benefit from an example showing a list range.

It wasn't immediately obvious to me how to do a regular for loop.