Practice - Lists and Strings
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
Practice Questions
Test your understanding with targeted questions
What type of data structure is a list in Python?
💡 Hint: Think about whether you can change its content after it's created.
How would you access the first element of a list named fruits?
💡 Hint: Remember that indexing starts at zero in Python.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
Which of the following is true about lists in Python?
💡 Hint: Think about whether you can change a list after you've created it.
Strings can be modified in Python.
💡 Hint: Consider the property of strings as immutable.
2 more questions available
Challenge Problems
Push your limits with advanced challenges
Create a list of 5 favorite cities, change one city to a new one, and then print the modified list.
💡 Hint: Think about how to use indexing to access and change the list.
Given a string, 'computer', create a new string that has the first and last character swapped.
💡 Hint: Use string slicing to rearrange characters.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.