Jump to content

Dúvida Python Iniciante


Recommended Posts

nome_da_pessoa = str(input('Digite seu nome completo: ')).strip() detector_de_silva = ('Silva' in nome_da_pessoa.capitalize()) print('Seu nome tem Silva? {}'.format(detector_de_silva))

Alguém poderia me explicar por que este código sempre me retorna false? Mesmo no nome conter o "Silva"?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...