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

Creating a List

20.2 - Creating a List

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

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.

4 more questions available

Interactive Quizzes

Quick quizzes to reinforce your learning

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.

2 more questions available

Challenge Problems

Push your limits with advanced challenges

Challenge 1 Hard

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!

Challenge 2 Hard

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.

Get performance evaluation

Reference links

Supplementary resources to enhance your learning experience.