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
Use the append method to add 'grape' to a list of fruits. Write the code.
π‘ Hint: Remember, `append` adds to the end of the list.
Question 2
Easy
What does remove('apple')
do if 'apple' is in the list?
π‘ Hint: Think of what it means to remove an item from a collection.
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 does the append() method do?
π‘ Hint: Think about where new items are added.
Question 2
Is pop()
safe to call on an empty list?
π‘ Hint: Consider the implications of removing an item from nothing.
Solve 1 more question and get performance evaluation
Push your limits with challenges.
Question 1
Create a list of 10 numbers. Write a function that sorts them using sort()
, reverses the order using reverse()
, then prints both the sorted and reversed lists.
π‘ Hint: Think about how you can apply both methods consecutively to achieve the desired output.
Question 2
Write a script that starts with a full list of students. Use remove()
to take out a student by name, and then pop()
to drop the last student from the list. Print the list after each operation.
π‘ Hint: Ensure you validate that the student exists before trying to remove them.
Challenge and get performance evaluation