def username_generator(first_name, last_name):
for index in range(len(first_name)):
for index2 in range(len(last_name)):
if index > 2 and index2 > 3:
username = first_name[:3] + last_name[:4]
return username
elif index <= 2:
username = first_name + last_name[:4]
return username
im getting
“Expected the name Mimiko Watanabe to produce the username MimWata, instead got MimikoWat”