Industry-relevant training in Business, Technology, and Design to help professionals and graduates upskill for real-world careers.
Fun, engaging games to boost memory, math fluency, typing speed, and English skills—perfect for learners of all ages.
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.
Test your understanding with targeted questions related to the topic.
Question 1
Easy
Modify the list fruits = ["apple", "banana"]
to change 'banana' to 'pear'.
💡 Hint: Use indexing to access the second item in the list.
Question 2
Easy
How would you change the first item in scores = [98, 85, 75]
to a score of 100?
💡 Hint: Remember that the first index is 0.
Practice 4 more questions and get performance evaluation
Engage in quick quizzes to reinforce what you've learned and check your comprehension.
Question 1
What will fruits[1] = 'grapes'
do in the list fruits = ['apple', 'banana', 'mango']
?
💡 Hint: Think about how indexing works.
Question 2
True or False: You can modify a list in Python by just assigning a new value to an index.
💡 Hint: Remember what it means for a list to be mutable.
Solve and get performance evaluation
Push your limits with challenges.
Question 1
Given a list my_numbers = [2, 4, 6, 8, 10]
, create a new list that doubles each element.
💡 Hint: Use list comprehension to achieve this.
Question 2
How can you modify the list names = ["John", "Jane", "Doe"]
to change 'Doe' to 'Smith', and print the updated list?
💡 Hint: Locate the index of 'Doe' to make the change.
Challenge and get performance evaluation