Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

create python code Write a program to ask the user for a number of hours. Insure that the number entered is from 1 to 500.

create python code
image text in transcribed
Write a program to ask the user for a number of hours. Insure that the number entered is from 1 to 500. Create a for loop to iterate once for each hour. When it hits an even day, print the day number. For example, when it hits 24 , display 1 day, when it hits 48 display 2 days, etc. When it hits an even week, display the week number. Submit your work to this assignment

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

Recommended Textbook for

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions

Question

=+2.4. Let F1, F2, ... be classes of sets in a common space 2.

Answered: 1 week ago

Question

Describe the seven standard parts of a letter.

Answered: 1 week ago

Question

Explain how to develop effective Internet-based messages.

Answered: 1 week ago

Question

Identify the advantages and disadvantages of written messages.

Answered: 1 week ago