Course Content
Introduction to Python
Introduction to Python
Challenge
Swipe to show code editor
You've been provided with a dictionary named people_d
that holds data in the format: 'name': (age, height)
. Create a function named people_information
that accepts two parameters:
d
(intended to be a dictionary).name
(intended to be a key within the dictionary).
This function should display the following details (based on the data format in people_d
):
For example, given the name 'Alex'
, the output should read:
Thanks for your feedback!
Challenge
Swipe to show code editor
You've been provided with a dictionary named people_d
that holds data in the format: 'name': (age, height)
. Create a function named people_information
that accepts two parameters:
d
(intended to be a dictionary).name
(intended to be a key within the dictionary).
This function should display the following details (based on the data format in people_d
):
For example, given the name 'Alex'
, the output should read:
Thanks for your feedback!
Challenge
Swipe to show code editor
You've been provided with a dictionary named people_d
that holds data in the format: 'name': (age, height)
. Create a function named people_information
that accepts two parameters:
d
(intended to be a dictionary).name
(intended to be a key within the dictionary).
This function should display the following details (based on the data format in people_d
):
For example, given the name 'Alex'
, the output should read:
Thanks for your feedback!
Swipe to show code editor
You've been provided with a dictionary named people_d
that holds data in the format: 'name': (age, height)
. Create a function named people_information
that accepts two parameters:
d
(intended to be a dictionary).name
(intended to be a key within the dictionary).
This function should display the following details (based on the data format in people_d
):
For example, given the name 'Alex'
, the output should read: