Update example of method 2.py

Just fixing a for loop syntax/logic error.