Practice Accessing Elements from a List - 20.3 | 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

Access the first element from the list fruits = ['apple', 'banana', 'mango'].

💡 Hint: Remember to use index 0.

Question 2

Easy

What does fruits[-1] return if fruits = ['apple', 'banana', 'mango']?

💡 Hint: Think about the last item in the 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 will fruits[0] return if fruits = ['apple', 'banana', 'mango']?

  • apple
  • banana
  • mango

💡 Hint: Look at the first position in the list.

Question 2

Is fruits[-1] equal to the last item in the list?

  • True
  • False

💡 Hint: Think about what -1 refers to.

Solve 2 more questions and get performance evaluation

Challenge Problems

Push your limits with challenges.

Question 1

Given the list mixed = [5, 'cat', 'dog', 9.0, True], find the value at index 2 and at index -1.

💡 Hint: Use both positive and negative indices to retrieve the values.

Question 2

You have a list of names: names = ['Alice', 'Bob', 'Charlie', 'David']. Write an expression to print the second and third names using negative indexing.

💡 Hint: Think about how negative indexing works from the end.

Challenge and get performance evaluation