Course Content
Introduction to Python
Introduction to Python
Challenge
Task
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
Task
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
Task
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!
Task
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: