Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Retrieving Information from Nested List | Other Data Types in Python
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Introduction to Python (dev copy) (copy) 1769011330820
SectionΒ 4. ChapterΒ 5
single

single

bookChallenge: Retrieving Information from Nested List

Swipe to show menu

Task

Swipe to start coding

You've been provided with the list people, which includes sub-lists detailing the names and ages of five individuals, as shown below:

NameAge
Alex23
Noah34
Peter29
John41
Michelle35

To extract specific information using indexing, follow these steps:

  1. Display the details (the entire sub-list) of the fourth person.
  2. Display the name of the first person.
  3. Display the age of the fifth person.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 4. ChapterΒ 5
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt