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

Academic Programs

AI-powered learning for grades 8-12, aligned with major curricula

Professional

Professional Courses

Industry-relevant training in Business, Technology, and Design

Games

Interactive Games

Fun games to boost memory, math, typing, and English skills

LIST – Python Data Structures

20 - LIST – Python Data Structures

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.

Learning

Practice Questions

Test your understanding with targeted questions

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.

4 more questions available

Interactive Quizzes

Quick quizzes to reinforce your learning

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.

3 more questions available

Challenge Problems

Push your limits with advanced challenges

Challenge 1 Hard

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.

Challenge 2 Hard

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.

Get performance evaluation

Reference links

Supplementary resources to enhance your learning experience.