Секція 1. Розділ 23
single
Challenge: Slicing with Index Function
Свайпніть щоб показати меню
Завдання
Проведіть, щоб почати кодувати
Try to extract words using slicing, but in a little bit more complicated way. The syntax of slicing is the following:
word[start_index:end_index]
To find the start_index, use the index() method, and to find the end_index, use the index() method, and add the length of the word.
- Extract the word
painful. - Extract the word
mistakes. - Extract the word
learn.
If you use all the methods that were explored, this task won't be challenging for you.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 23
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат