Challenge: Retrieving Letters from String
Uppgift
Swipe to start coding
You're given the string "This is string for learning" stored in the variable test_str
. Your tasks are to:
- Retrieve and display the first character of the
test_str
(using the firstprint()
function). - Retrieve and display the last character of the
test_str
(using the secondprint()
function). - Retrieve and display the word
string
from thetest_str
variable.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 10
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Awesome!
Completion rate improved to 1.64
Challenge: Retrieving Letters from String
Svep för att visa menyn
Uppgift
Swipe to start coding
You're given the string "This is string for learning" stored in the variable test_str
. Your tasks are to:
- Retrieve and display the first character of the
test_str
(using the firstprint()
function). - Retrieve and display the last character of the
test_str
(using the secondprint()
function). - Retrieve and display the word
string
from thetest_str
variable.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Awesome!
Completion rate improved to 1.64Avsnitt 2. Kapitel 10
single