ChallengeChallenge

Task

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.

Everything was clear?

Section 4. Chapter 5
toggle bottom row