Jan-08-2020, 08:57 PM
Please, how do i make my comparison case sensitive?
#program that simulates how websites ensure that everyone has a unique username . current_users = ['mary', 'michael', 'john', 'cyril', 'philippa'] new_users = ['mike', 'mary', 'joy', 'philippa', 'peace'] for new_user in new_users: if new_user.lower() in current_users.lower(): print('Username not available') print('Please enter a new username') else: print('Username is available.')