6 lines
249 B
Python
6 lines
249 B
Python
def format_username(firstname, lastname):
|
|
first = firstname.lower().strip().replace(" ", "")[:6].encode('ascii', 'ignore')
|
|
last = lastname.lower().strip().replace(" ", "")[:6].encode('ascii', 'ignore')
|
|
|
|
return "{}{}".format(first, last)
|