Convert everything to lowercase before doing your test:
current_users = ["John", "Admin", "Jack", "Ana", "Natalie"]
new_users = ["Pablo", "Donald", "Calvin", "Natalie", "Emma"]
current_users = [x.lower() for x in current_users]
new_users = [x.lower() for x in new_users]
If you're new to Python this is called List Comprehensions.
for username in new_users:
if username in current_users:
print("Username unavailable.")
else:
print("Username available.")
Or if the first letter of the usernames is always capitalized, you can use .title()
for username in new_users:
if username.title() in current_users:
print("Username unavailable.")
else:
print("Username available.")