Practice - Lecture - 04
Practice Questions
Test your understanding with targeted questions
What is the output of print('Python'[1])?
💡 Hint: Think about string indexing.
Use split() on 'hello world' to create a list. What will the list contain?
💡 Hint: What do you expect it to break up on?
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What is the output of print('Hello'[1])?
💡 Hint: Think about the position of letters in the string.
Escape characters are used for what purpose?
💡 Hint: Think of special characters in strings.
2 more questions available
Challenge Problems
Push your limits with advanced challenges
Create a function that takes a string and a character, then returns how many times the character appears in the string.
💡 Hint: Consider a string method that counts occurrences.
Write a program that asks for user input and prints it reversed without using the reverse() method.
💡 Hint: Think about indexing and slicing in reverse.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.