do you have to qualift for mosp twice?

for x in range(1,y)

Here is what the above code is Doing:
1. It’s creating a list of numbers from 1 to y.
2. It’s iterating through that list.
3. It’s printing out each number in the list.

You can also use a for loop to iterate through a list of strings:

for x in range(1,y):
print(x)

This will print out each string in the list on a separate line.