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

Contenido del Curso

Python Data Types

Python Data Types

1. Numeric Types
2. Boolean Type
3. Strings

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 show code editor

test

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.

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!

Sección 3. Capítulo 9
toggle bottom row

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 show code editor

test

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.

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!

Sección 3. Capítulo 9
toggle bottom row

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 show code editor

test

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.

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!

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 show code editor

test

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.

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
Sección 3. Capítulo 9
Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
some-alt