Sectie 1. Hoofdstuk 23
single
Challenge: Slicing with Index Function
Veeg om het menu te tonen
Taak
Veeg om te beginnen met coderen
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.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 23
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.