I have the following list:
users = [
"user1",
"user2",
"user3"
]
and I have this for loop, that loops through another list:
for item in ids:
myfunction(item, user) # ???
I'm not sure how to make this loop. What I want to to is, for each item the loop goes through, it should execute myfunction(item, user)
, but the user variable should be a user from the users list, and for each item, the user should not be the same (when it gets to the end of the users list, it may come back to user1, and repeat the loop).
It should execute something like this:
myfunction(item, "user1")
myfunction(item, "user2")
myfunction(item, "user3")
How can I achieve something like this?
Thank you