https://www.youtube.com/watch?v=LsYqzSYb9y8 Starting out with Python, Third Edition, Tony Gaddis Chapter 5 Programming Challenges 13. Falling Distance When an object is falling because of gravity, the following formula can be used to determine the distance the object falls in a specific time period: d = 1/2 * g * t(squared) The variables in the formula are as follows: d is the distance in meters, g is 9.8, and t is the amount of time, in seconds, that the object has been falling. Write a function named falling_distance that accepts an object's falling time(in seconds) as an argument. The function should return the distance, in meters, that the object has fallen during that time interval. Write a program that calls the function in a loop that passes the values 1 through 10 as arguments and displays the return value. Starting out with Python. Third Edition. Tony Gaddis. Happy Steeming Everyone! :)
author | kakradetome |
---|---|
permlink | 5-13-part-2-falling-distance-python |
category | programming |
json_metadata | {"tags":["programming","coding","python","tony-gaddis","falling-distance"],"image":["https://img.youtube.com/vi/LsYqzSYb9y8/0.jpg"],"links":["https://www.youtube.com/watch?v=LsYqzSYb9y8"],"app":"steemit/0.1","format":"markdown"} |
created | 2017-01-29 01:20:06 |
last_update | 2017-01-29 01:20:06 |
depth | 0 |
children | 0 |
last_payout | 2017-03-01 05:26:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 4.785 HBD |
curator_payout_value | 1.549 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 920 |
author_reputation | 31,794,084,266,065 |
root_title | "5.13. (Part 2) Falling Distance - Python" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 2,368,927 |
net_rshares | 30,400,509,908,901 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
michael-a | 0 | 2,471,704,818,079 | 25% | ||
michael-b | 0 | 3,383,365,467,906 | 25% | ||
val-a | 0 | 6,801,846,560,079 | 25% | ||
ned | 0 | 13,108,920,891,132 | 25% | ||
wackou | 0 | 1,342,011,568,225 | 25% | ||
gavvet | 0 | 2,541,718,176,265 | 100% | ||
brich | 0 | 4,014,519,501 | 25% | ||
the-alien | 0 | 162,806,049,288 | 25% | ||
crok | 0 | 5,269,607,643 | 100% | ||
thebatchman | 0 | 1,118,644,079 | 3% | ||
kakradetome | 0 | 11,238,669,368 | 100% | ||
domino | 0 | 44,730,853,299 | 21% | ||
anyx | 0 | 162,180,140,956 | 25% | ||
thebatchman1 | 0 | 69,192,335 | 3% | ||
pkattera | 0 | 65,701,458,221 | 25% | ||
shla-rafia | 0 | 2,478,805,058 | 7.5% | ||
pinkisland | 0 | 36,352,123,082 | 100% | ||
sykochica | 0 | 49,960,279,469 | 100% | ||
toxichan | 0 | 806,779,822 | 17.5% | ||
bhavnapatel68 | 0 | 40,296,919,573 | 100% | ||
virtualgrowth | 0 | 1,583,155,504 | 5% | ||
abarefootpoet | 0 | 4,281,373,294 | 100% | ||
bitcoinparadise | 0 | 15,017,337,805 | 100% | ||
thegame | 0 | 207,513,774 | 2.5% | ||
steembets | 0 | 210,747,764 | 2.5% | ||
revostrike | 0 | 66,805,230 | 25% | ||
cannes | 0 | 1,345,055,463 | 25% | ||
steemland.com | 0 | 210,315,636 | 2.5% | ||
sqube | 0 | 5,908,322,768 | 3% | ||
chiliec | 0 | 1,866,990,446 | 12.5% | ||
steemprentice | 0 | 4,527,492,698 | 7.5% | ||
vcelier | 0 | 107,067,924,107 | 25% | ||
dreemit | 0 | 3,576,639,817 | 10% | ||
noeva | 0 | 1,763,352,488 | 100% | ||
dunia | 0 | 16,285,358,727 | 2% |