Ok, I’m working from the python crash course and I’ve designed two lists to loop through usernames. I’ve got it to work like it should Except if a username has numbers with it.
current_users = ['wickdwayz', 'olive', 'black panther', 'monkey12', 'elevenbravo', 'admin', ''] new_users = ['wickdwayz', 'elevenbravo', 'sanitizer12', 'water_head69', '420_lover', ] user = '420_lover' if user.lower() not in current_users: if user.lower() not in new_users: print('You may use that username!') else: print('Sorry that username is already in use. Please select another username.')
If I run this with the current “user”, I get no syntax error or anything else. It returns blank.
Can someone help me with this please?