for loop using range function in python