Apr-25-2019, 10:09 AM
You can write a function to normalize the user input, then write
norm_username = normalize(username) if norm_username == 'jack': ...For example the following function normalizes the user name to the first word of the input in lowercase characters
def normalize(username): return username.split()[0].lower()