Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in python 2. Write a loop that will count from 0 to 1000 hours. Every iteration of your loop, print the amount of time in

in python image text in transcribed
2. Write a loop that will count from 0 to 1000 hours. Every iteration of your loop, print the amount of time in days and hours since the count started. When run the output should look as follows: O days and 1 hours have passed O days and 2 hours have passed O days and 3 hours have passed O days and 4 hours have passed O days and 23 hours have passed 1 days and 0 hours have passed 1 days and 1 hours have passed 1 days and 2 hours have passed 1 days and 23 hours have passed 2 days and 0 hours have passed 2 days and 1 hours have passed Etc, until you have counted 1000 hours

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What causes a rotary lawn sprinkler to turn?

Answered: 1 week ago

Question

1. What are some of the costs of conflict?

Answered: 1 week ago

Question

Define Leap year?

Answered: 1 week ago

Question

Prepare a short profile of Lucy Clifford ?

Answered: 1 week ago

Question

Prepare a short profile of Rosa parks?

Answered: 1 week ago

Question

Prepare a short profile of victor marie hugo ?

Answered: 1 week ago