Why .lower and .replece didn`t do anything with names? 1st:
names = ["Joey Tribbiani", "Monica Geller", "Chandler Bing", "Phoebe Buffay"]
usernames = []
for name in names:
name.lower()
name.replace(' ', '_')
usernames.append(name)
print(usernames)
2nd:
names = ["Joey Tribbiani", "Monica Geller", "Chandler Bing", "Phoebe Buffay"]
usernames = []
for name in names:
usernames.append(name.lower().replace((' ', '_')))
print(usernames)