Challenge: Retrieving Letters from String
Taak
Swipe to start coding
You are working with strings and need to extract specific parts of a given sentence. You have a sentence stored in a variable and need to extract the first character, last character, and a specific word from it.
- Create a variable called
first_char
to store the first character of the string. - Create a variable called
last_char
to store the last character of the string. - Create a variable called
highlighted_word
to store the word"for"
extracted from the string.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 2. Hoofdstuk 9
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Awesome!
Completion rate improved to 1.67
Challenge: Retrieving Letters from String
Veeg om het menu te tonen
Taak
Swipe to start coding
You are working with strings and need to extract specific parts of a given sentence. You have a sentence stored in a variable and need to extract the first character, last character, and a specific word from it.
- Create a variable called
first_char
to store the first character of the string. - Create a variable called
last_char
to store the last character of the string. - Create a variable called
highlighted_word
to store the word"for"
extracted from the string.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Awesome!
Completion rate improved to 1.67Sectie 2. Hoofdstuk 9
single