Skip to content

Instantly share code, notes, and snippets.

@magusafr
Created June 29, 2018 14:47
Show Gist options
  • Save magusafr/4c0f8a0334b9782b684dc3c840265452 to your computer and use it in GitHub Desktop.
Save magusafr/4c0f8a0334b9782b684dc3c840265452 to your computer and use it in GitHub Desktop.
check username in confirmed username
unconfirmed_users = ["peter", "tom", "mark", "brian", "agus", "tom", "travis"]
confirmed_users = []
while unconfirmed_users:
current_user = unconfirmed_users.pop()
if current_user not in confirmed_users:
print("Verifying user: " + current_user.title())
confirmed_users.append(current_user)
print("\nThe following users have been confirmed:")
for confirmed_user in confirmed_users:
print(confirmed_user.title())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment