Challenge: Retrieving Letters from String
Task
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
stringfrom thetest_strvariable.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 10
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Suggested prompts:
Summarize this chapter
Explain the code in file
Explain why file doesn't solve the task
Awesome!
Completion rate improved to 1.64
Challenge: Retrieving Letters from String
Swipe to show menu
Task
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
stringfrom thetest_strvariable.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 10
single