a for loop iterates over items, if there are no items to iterate, nothing will happen
if there are no items to get it won't be assigned as anything.
You would need an if statement that is outside of the loop that checks for an empty list.
for username in usernames:
username
gets each item from usernames
if there are no items to get it won't be assigned as anything.
You would need an if statement that is outside of the loop that checks for an empty list.