Practice LIST – Python Data Structures - 20 | 20. LIST – Python Data Structures | CBSE Class 9 AI (Artificial Intelligence)
K12 Students

Academics

AI-Powered learning for Grades 8–12, aligned with major Indian and international curricula.

Professionals

Professional Courses

Industry-relevant training in Business, Technology, and Design to help professionals and graduates upskill for real-world careers.

Games

Interactive Games

Fun, engaging games to boost memory, math fluency, typing speed, and English skills—perfect for learners of all ages.

Practice Questions

Test your understanding with targeted questions related to the topic.

Question 1

Easy

What is the output of fruits = ['apple', 'banana', 'mango']; print(fruits[1])?

💡 Hint: Remember to check the index starting from 0.

Question 2

Easy

How do you create an empty list in Python?

💡 Hint: Use square brackets without any content.

Practice 4 more questions and get performance evaluation

Interactive Quizzes

Engage in quick quizzes to reinforce what you've learned and check your comprehension.

Question 1

What is the correct way to create a list in Python?

  • list = (1
  • 2
  • 3)
  • list = [1
  • 2
  • 3]
  • list = {1
  • 2
  • 3}

💡 Hint: Think about the symbols used to denote different data structures.

Question 2

True or False: Lists in Python cannot contain duplicate values.

  • True
  • False

💡 Hint: Consider the definition of what makes a list unique.

Solve 3 more questions and get performance evaluation

Challenge Problems

Push your limits with challenges.

Question 1

Write a function that takes a list of numbers as input and returns a new list containing only the even numbers from the given list.

💡 Hint: Think about how you can use list comprehension to filter the items.

Question 2

Create a nested list showing a 3x3 matrix and write a piece of code to change the middle value to zero.

💡 Hint: Access the middle item via its row and column indices.

Challenge and get performance evaluation