in Python 3.1 How many seconds are in an hour? Use the interactive interpreter as a calculator and multiply the number of seconds in a minute (60) by the number of minutes in an hour (also60). 3.2 Assign the result from the previous task (seconds in an hour) to a variable calledseconds_per_hour. 3.3 How many seconds are in a day? Use yourseconds_per_hourvariable. 3.4 Calculate seconds per day again, but this time save the result in a variable calledseconds_per_day. 3.5Print the value of seconds_per_hour(shouldbe 3600) and seconds_per_day(should be 86400) 3.6Divideseconds_per_daybyseconds_per_hour. Use floating-point (/) division.save in divsingle 3.7Divideseconds_per_daybyseconds_per_hour, using integer (//) divisionsave in divdouble. Did this numberagree with the floating-point value from the previous question, aside from the final.0? 3.8Print divsingle(should be 24.0) and divdouble(should be 24)
in Python
3.1 How many seconds are in an hour? Use the interactive interpreter as a calculator and multiply the number of seconds in a minute (60) by the number of minutes in an hour (also60).
3.2 Assign the result from the previous task (seconds in an hour) to a variable calledseconds_per_hour.
3.3 How many seconds are in a day? Use yourseconds_per_hourvariable.
3.4 Calculate seconds per day again, but this time save the result in a variable calledseconds_per_day.
3.5Print the value of seconds_per_hour(shouldbe 3600) and seconds_per_day(should be 86400)
3.6Divideseconds_per_daybyseconds_per_hour. Use floating-point (/) division.save in divsingle
3.7Divideseconds_per_daybyseconds_per_hour, using integer (//) divisionsave in divdouble. Did this numberagree with the floating-point value from the previous question, aside from the final.0?
3.8Print divsingle(should be 24.0) and divdouble(should be 24)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images