Advertisement
Guest User

Untitled

a guest
Jun 13th, 2020
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. usernames1 = ['john', 'jim', 'jane', 'jack']
  2. usernames2 = []
  3.  
  4. while usernames:
  5.     current_username = usernames1.pop()
  6.     print(f"{current_username.title()} is logging in.")
  7.     usernames2.append(current_username)
  8.  
  9. print("\n")
  10. for user in usernames2:
  11.     print(f"{user.title()} logged in.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement