Question: Write a function print _ steps ( walks , name ) that takes a dictionary walks mapping people's names to ( distance , step _
Write a function printstepswalks name that takes a dictionary walks mapping people's names to distance steplength tuples and a name from that dictionary, and prints the number of steps that person walked.
Distances and step lengths are both in metres, so you can calculate the number of steps using:
stepsdistancesteplength
The number of steps should be printed to the nearest whole number.
For example:
Test Result
walks
"Angus McGurkinshaw":
"Bobert Buckingdale":
"Suzan Smith":
"Jackie Jean":
printstepswalks "Angus McGurkinshaw"
Angus McGurkinshaw:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
