Question
The following formula can be used to determine the distance an object falls due to gravity in a specific time period: d = (1/2)gt 2
The following formula can be used to determine the distance an object falls due to gravity in a specific time period:
d = (1/2)gt2
where d is the distance in meters, g is 9.8, and t is the time in seconds that the object has been falling. Write a function named fall_distance that takes the time in seconds as an argument. The function should return the distance in meters that the object has fallen in that time. For example if the function is passed the value 3.2, then it should return the value 50.176. Your function does not need to print anything out - just return a value.
Here's a simple example of how your fall_distance() function could be used:
dist = fall_distance(4.5) print(dist)
The file must be named: fall_distance.py
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started