2
print('-----')
print('TESTE')
print('-----')
print()
lista = ['Joao', 'Joaozinho', 'Rafael']
print(lista)
var = str(input('Digite algum dos nomes da lista:'))
if var == 'Joao' or var == 'João' or var == 'joao' or var == 'JOao' or var == 'JOAO' or var == 'JOão':
print('Qualquer coisa')
elif var == 'Joaozinho' or var == 'JOAOZINHO' or var == 'joaozinho' or var == 'joaoZINHO':
print('Qualquer coisa')
elif var == 'RAFAEL' or var == 'Rafael' or var == 'RAfael':
print('Qualquer coisa')
Basically, what I want to do is the following, I want to check these exemplary names without having to make these various conditions, for example the "RAFAEL", "Rafael", and "Rafael", even with some capital letters mixed with lowercase, as for example this last "Rafael"How do I do this?
We had the same reasoning hahah
– MagicHat
Thanks Matheus, solved my problem!
– BRKappa