Challenge: Retrieving Letters from String
Compito
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_charto store the first character of the string. - Create a variable called
last_charto store the last character of the string. - Create a variable called
highlighted_wordto store the word"for"extracted from the string.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 2. Capitolo 9
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Fantastico!
Completion tasso migliorato a 1.67
Challenge: Retrieving Letters from String
Scorri per mostrare il menu
Compito
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_charto store the first character of the string. - Create a variable called
last_charto store the last character of the string. - Create a variable called
highlighted_wordto store the word"for"extracted from the string.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 2. Capitolo 9
single