Practice Creating a List - 20.2 | 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

Create a list of five favorite colors.

💡 Hint: Think of your favorite colors and list them.

Question 2

Easy

What is the output of empty = []?

💡 Hint: Remember how we define an empty list.

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 symbol is used to create a list in Python?

  • ()
  • {}
  • []

💡 Hint: Think about the brackets for lists.

Question 2

A list can contain which of the following types?

  • Only integers
  • Only strings
  • Multiple data types

💡 Hint: Recall the definition of lists.

Solve 2 more questions and get performance evaluation

Challenge Problems

Push your limits with challenges.

Question 1

Create a list called 'data' that contains five elements of varied data types. Then access the second item in that list.

💡 Hint: Make sure to look at indexing!

Question 2

Write a Python snippet that initializes an empty list and then adds the numbers 1 to 5 to it.

💡 Hint: Consider how to add items to an empty list.

Challenge and get performance evaluation