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
What does fruits.append('orange')
do?
💡 Hint: Think about where the item is being added.
Question 2
Easy
Use insert()
to add 'mango' to index 2 in a list. What would it look like?
💡 Hint: Remember the syntax for insert.
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: Remember it's about the position of the addition.
Question 2
Using insert()
, what happens if you specify index 0?
💡 Hint: Think about how lists are indexed.
Solve and get performance evaluation
Push your limits with challenges.
Question 1
Create a list of your favorite animals, and write a function that takes an animal name as an argument. If that animal is not in the list, append it; if it is, insert a new type of the same animal at the same position.
💡 Hint: You'll want to check for membership before you decide what to do.
Question 2
Imagine you manage a food list. Write a short script to ask users to input food items, appending them until they type 'quit'. After that, allow the user to input one more item that should be inserted at the first position.
💡 Hint: Utilize loops to keep taking inputs!
Challenge and get performance evaluation