Created
June 29, 2018 14:47
-
-
Save magusafr/4c0f8a0334b9782b684dc3c840265452 to your computer and use it in GitHub Desktop.
check username in confirmed username
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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