""" Quiz: Create Usernames

Write a for loop that iterates over the names list to create a usernames list. To create a username for each name, make everything lowercase and replace spaces with underscores. Running your for loop over the list:

names = ["<NAME>", "<NAME>", "<NAME>", "<NAME>"]

should create the list:

usernames = ["joey_tribbiani", "monica_geller", "chandler_bing", "phoebe_buffay"]

HINT: Use the .replace() method to replace the spaces with underscores. Check out how to use this method in this Stack Overflow answer.
"""

names = ["<NAME>", "<NAME>", "<NAME>", "<NAME>"]
usernames = []

# write your for loop here
for name in names:
    usernames.append(name.lower().replace(" ", "_"))

print(usernames)

""" Quiz: Create Usernames

Write a for loop that iterates over the names list to create a usernames list. To create a username for each name, make everything lowercase and replace spaces with underscores. Running your for loop over the list:

names = ["<NAME>", "<NAME>", "<NAME>", "<NAME>"]

should create the list:

usernames = ["joey_tribbiani", "monica_geller", "chandler_bing", "phoebe_buffay"]

HINT: Use the .replace() method to replace the spaces with underscores. Check out how to use this method in this Stack Overflow answer.
"""

names = ["<NAME>", "<NAME>", "<NAME>", "<NAME>"]
usernames = []

# write your for loop here
for name in names:
    usernames.append(name.lower().replace(" ", "_"))

print(usernames)

Quiz: Create Usernames  Write a for loop that iterates over the names list to create a usernames list. To create a username for each name, make everything lowercase and replace spaces with underscores. Running your for loop over the list:  names = ["<NAME>", "<NAME>", "<NAME>", "<NAME>"]  should create the list:  usernames = ["joey_tribbiani", "monica_geller", "chandler_bing", "phoebe_buffay"]  HINT: Use the .replace() method to replace the spaces with underscores. Check out how to use this method in this Stack Overflow answer. # write your for loop here