Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge | Other Data Types
Introduction to Python

Challenge

Tarea

You've been provided with a tuple named people that holds data on individuals' names, ages, and heights in the format: (('name', age, height), ('name', age, height), ...). Here's a snapshot of the data:

NameAgeHeight
Alex23178
Noah34189
Peter29175
John41185
Michelle35165

To extract specific information using positive indexing, follow these steps:

  1. Display details (the entire tuple) about Peter.
  2. Display John's height.
  3. Display Alex's age.

¿Todo estuvo claro?

Sección 4. Capítulo 10
toggle bottom row
course content

Contenido del Curso

Introduction to Python

Challenge

Tarea

You've been provided with a tuple named people that holds data on individuals' names, ages, and heights in the format: (('name', age, height), ('name', age, height), ...). Here's a snapshot of the data:

NameAgeHeight
Alex23178
Noah34189
Peter29175
John41185
Michelle35165

To extract specific information using positive indexing, follow these steps:

  1. Display details (the entire tuple) about Peter.
  2. Display John's height.
  3. Display Alex's age.

¿Todo estuvo claro?

Sección 4. Capítulo 10
toggle bottom row
some-alt