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
course content

Course Content

Introduction to Python

Introduction to Python

1. First Acquaintance
2. Variables and Types
3. Conditional Statements
4. Other Data Types
5. Loops
6. Functions

bookChallenge

Task

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.

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 10
toggle bottom row

bookChallenge

Task

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.

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 10
toggle bottom row

bookChallenge

Task

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.

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!

Task

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.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 4. Chapter 10
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
some-alt