Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

how could I write a function in Python that requests a range between only 0-100 for each of these questions. Anything over that and it

how could I write a function in Python that requests a range between only 0-100 for each of these questions. Anything over that and it states that you have exceeded the range and loops back to original question? I would prefer to see a for loop demonstrated or something. I'm trying to get used to them.

i.e.

bp=int(input('How many bench press reps did you perform?: ')) bs=int(input('How many back squat reps did you perform?: ')) mp=int(input('How many military press reps did you perform?: ')) dl=int(input('How many deadlifts did you perform?: '))

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

Development Of Knowledge Framework For Affective Content Analysis

Authors: Swarnangini Sinha

1st Edition

B0CQJ13WZ1, 979-8223977490

More Books

Students also viewed these Databases questions

Question

Make a presentation on how MBTI types differ and respond to work.

Answered: 1 week ago

Question

Explain the nature of human resource management.

Answered: 1 week ago

Question

Write a note on Quality circles.

Answered: 1 week ago

Question

Describe how to measure the quality of work life.

Answered: 1 week ago

Question

4. Identify cultural variations in communication style.

Answered: 1 week ago