What is the purpose of the method 'startswith' in Python?
a) To verify if characters exist at the beginning of a string.
b) To verify if characte...
What is the purpose of the method 'startswith' in Python?
a) To verify if characters exist at the beginning of a string. b) To verify if characters exist at the end of a string. c) To convert a string to lowercase.
O objetivo do método 'startswith' em Python é verificar se uma string começa com um determinado conjunto de caracteres. A alternativa correta é a letra A) Para verificar se caracteres existem no início de uma string.
0
0
✏️ Responder
Para escrever sua resposta aqui, entre ou crie uma conta
Compartilhar