how to use for loop in python 3