Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Check String | Strings
Python Data Types

bookCheck String

Very often it hits that we need to check for the presence of some character or word in the string, and in order to realize this, we should use such a key word as in. As a result, we get a boolean value: True if such a character or substring is present in the string, and False - in the opposite case. For a better understanding, let's look at an example.

123
string = 'Pear Lime Banana' print('Lime' in string) print('Mango' in string)
copy
Tarea

Swipe to start coding

You have a string. You should check that this line contains such substrings Lorem, python, consectetur. If there is such a substring, then calculate its length.

Solución

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 3. Capítulo 9
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

Suggested prompts:

Resumir este capítulo

Explicar el código en file

Explicar por qué file no resuelve la tarea

close

Awesome!

Completion rate improved to 3.85

bookCheck String

Desliza para mostrar el menú

Very often it hits that we need to check for the presence of some character or word in the string, and in order to realize this, we should use such a key word as in. As a result, we get a boolean value: True if such a character or substring is present in the string, and False - in the opposite case. For a better understanding, let's look at an example.

123
string = 'Pear Lime Banana' print('Lime' in string) print('Mango' in string)
copy
Tarea

Swipe to start coding

You have a string. You should check that this line contains such substrings Lorem, python, consectetur. If there is such a substring, then calculate its length.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

close

Awesome!

Completion rate improved to 3.85
Sección 3. Capítulo 9
single

single

some-alt