a = ['Niuniu','Niumei','GURR','LOLO']
b = ['GurR','Niu Ke Le','LoLo','Tuo Rui Chi']
c = [i.lower() for i in a]
d = [j.lower() for j in b]
for ii in d:
if ii in c:
print('The user name {} has already been registered! Please change it and try again!'.format(b[d.index(ii)]))
else:
print('Congratulations, the user name {} is available!'.format(b[d.index(ii)]))



京公网安备 11010502036488号