Practice - Lists and Tuples
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
Create a list of three fruits and display it.
💡 Hint: Use square brackets and separate by commas.
What will happen if you try to add an element to a tuple?
💡 Hint: Remember that tuples are immutable.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
Which of the following is mutable?
💡 Hint: Consider which can be changed.
True or False: Tuples can be changed after creation.
💡 Hint: What does it mean when we say a tuple is immutable?
2 more questions available
Challenge Problems
Push your limits with advanced challenges
Create a list containing five of your favorite movies. Then, write a function that accepts this list and returns a tuple containing the first and last movie.
💡 Hint: Think about indexing and how to convert a list to a tuple.
Design a program that takes user input to create a list of tasks. After the user finishes creating the list, convert this list into a tuple and print both the list and the tuple.
💡 Hint: Use a loop to gather inputs and remember to convert the list to a tuple at the end.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.