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)

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter5: Looping
Section: Chapter Questions
Problem 12E
icon
Related questions
Question

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)

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,