Your school is hosting a diving contest, and they need a programmer to work on the scoreboard! Your job is to calculate each diver's total after the three judges hold up their individual scores. Write the function calculate_score which takes a tuple of three numbers from 0 to 10 and calculates the sum. A perfect dive is worth 30 points, a belly flop is worth 0. For example: calculate_score((10, 10, 10)) # => 30 calculate_score((9, 9, 6)) # => 24

Answers

Answer 1

Answer:

def calculate_score(setss):

    num1, num2, num3= setss

    if num1 >= 0 and num1 <=10 and num2>= 0 and num2<=10 and num3>= 0 and num3<=10:

         print(num1+ num2+num3)

    else:

         print("Out of range")

Explanation:

I've added the full source code as an attachment, where I used comments as explanation


Related Questions

D
E
A
C
B
For this lab, you will find the area of an irregularly shaped room with the shape as shown above.
Ask the user to enter the values for sides A, B, C, D, and E and print out the total room area.
Remember the formula for finding the area of a rectangle is length width and the area of a right triangle is 0.5 * the base" heigh
Please note the final area should be in decimal format.
Sample Run
Enter side A: 11
Enter side B: 2
Enter side C: 4
Enter side D: 7
Enter side E: 1
Sample Output
Room Area: 53.5

Answers

In python:

a = float(input("Enter side A: "))

b = float(input("Enter side B: "))

c = float(input("Enter side C: "))

d = float(input("Enter side D: "))

e = float(input("Enter side E: "))

print(f"Room Area: {(a * b) + ((a - c) * (d - (b + e))) + (0.5*(a - c) * e)}")

I hope this helps!

Unscramble the words

A: ESUOM RETUPOC

B: KSID EVIRD

Answers

A. Mouse coputer
B. Disk drive
A) Mouse copter
B) Disk Drive
hope this helps x

Each Main Tab in the Ribbon has different Groups containing icons.
True Or False

Answers

Answer:

i think true

Explanation:

How do I turn off lanschool student?

Answers

Answer:

First try logging out. If that doesn't work there is a really helpful video on how to uninstall and reinstall with everything still there. Hope this was helpful.

Helpppppp What is telnet?
internet protocol that allows one to access newsgroups
internet protocol that is the foundation for online data communication
internet protocol that connects to a computer remotely
internet protocol that loads a local file from a network onto a computer

Answers

C. internet protocol that connects to a computer remotely

Which guidelines should be used to make formatting tasks more efficient?

Use pasted text only; this does not keep the original formatting.
Keep formatting fancy; this makes Word documents look better.
Save styles in the document; this makes working with multiple documents easier.
Avoid pasting text from other documents; this makes formatting easier.

Answers

Answer:

Use pasted text only; this does not keep the original formatting.

Explanation:

bc

Answer:

Use pasted text only; this does not keep the original formatting.

Explanation:

Assignment: Earth’s Surface Exploration

Answers

Answer:

Stop waiting until the due date

Explanation:

Why you always wait until the last minute to turn in yo assignments

Which shape is used as a start or end?
a paralleogram
a rounded rectangle
a rectangle
a diamond

Answers

Answer:

rounded rectangle

Explanation:

I jus looked it up lol

What is the purpose of an IP address?
A identifying source and destination of data
B. creating images on websites
C. drawing tables on a spreadsheet
D. arranging packets of data correctly

Answers

pretty sure the answer is A!

What is calculated first in this formula: =A5*(A7+A10)+A14​

Answers

Answer:

The equation in parenthisis , you always calculate first

Which of the following is the primary benefit of becoming a member in the Dramatists Guild of America?


group health insurance

free legal advice

standard salary

networking opportunities

Answers

Answer:

networking opportunities

Explanation:

  The Dramatists Guild of America does offer playwrights legal advice and information on establishing royalties. However, the primary benefit of membership in the DG is networking opportunities. Playwriting is a limited field, and networking opportunities are essential for work.

What is constructive criticism?

Advice and possible solutions intended to help or improve something
Information given to others as a way to make them feel unintelligent
Reports about decreasing profits
Statements and no possible solutions aimed at showing problem areas

Answers

Answer:

Constructive cristsism is a helpful way of giving feedback that provides specific, actionable suggestions. Or, its a nice way of criticizing someone and telling them what to do better

Answer:

Advice and possible solutions intended to help or improve something

Explanation:

I took the test and Got it Correct!

Fill in the blank to give the result of each operation.
2 * 5 =

4 ** 3 =

7 / 2 =

17 % 3 =

Answers

Answer:

2 * 5 =10

4 ** 3 =64

7 / 2 =3.5

17 % 3 =2

Explanation:

I just got them all correct :) good luck

The result from each operation from each operation of the mathematical calculations are 10, 64, 3.5, and 0.51.

What is the mathematical calculations?

Counting, calculating, and grouping objects in simple math information and commercial activities were among the mathematical calculations. Simple math facts and operations can be counted and computed using this formula.

The correct fill in the blanks are:

2 × 5 = 104 ** 3 = 64 (Cube of 4)7 / 2 = 3.517 % 3 =0.51

Therefore, the mathematical calculations made the calculations easier, and it is a time saver.

Learn more about the mathematical calculations, refer to:

https://brainly.com/question/11790473

#SPJ2

In an "and" operator only ONE value has to be true to activate the if block
Yes or No
(Scratch Coding)

Answers

If the "and" operator is present, BOTH conditions must be True in order for the if block to be activated.

Answer:

No

Explanation:

Even after charging your smartphone for several hours, it still appears completely turned off and will not tum on What should you try next to restore it
to health?
A.)submerge it in a bag of rice for 24 hours
B.)perform a hard reset
C.)perform a soft reset
D.)plug it into a charger for another hour

Answers

B. Perform a hard reset. Hold home and power I think.

Answer:

C: perform a soft reset

Explanation:

Just took the test, got 100.

The line represents a visible line that represents features that can be seen
in the current view.
Continuous Thick Line
Pictorial Sketch Types
Aligned Section View
Chain Thin Line

Answers

We use the Continuous Thick Line representation which uses in the line.

The continuous thick line represents a sample that depicts features seen in the current view, which can be used to represent apparent contours and boundaries.

In this, the scribbled lines are used to generate contours and edges that are not visible from the outside.This line type is utilized in site plans for apparent outlines, general detailing, existing structures, and landscaping.

Therefore, the answer is "continuous thick line".

Learn more about the line here:

brainly.com/question/26196994

As per the statement, the line represents the visible part of the features that can be seen in the current views as the line is a continuous thick line.  Thus the option A is correct.

Which line represents a visible feature of current view.?

The visible lines are those that make up most of the visible part of the features and are noted for the summary lines and refer to the specific views.

A continuous line can be easily seen and is visible for very far and hence this line is a sorrowing the side of the matter. It can be used to outline the object and is has a medium weight.  Hence the visibility of the line is lone factor of the continuality and thickness.

Find out more information about the line represented.

brainly.com/question/12242745.

Y’all know any movie sites I can go on?

Answers

Answer:

Tinseltown

Explanation:

how do you award a brainliest

Answers

Answer: Usually there has to be 2 answers. When you go to the answers on your question there should be a outlined crown or something like that, then you click that.


2 A_______
uses graphics or pictures to help the user navigate and
access programs

Answers

Answer:

the interface

Explanation:

What is the singular of Data?
What are alphanumeric characters?

Answers

Answer:

1. Datum

2. Alphanumericals are a combination of alphabetical and numerical characters

Explanation:

Where do i go to find questions to answer
13 points if you can help me PLz

Answers

Answer:

if you are on a phone there should be a Answer tab at the bottom in the middle next to influence but if you are on a computer go to the Brainly home page and scroll down to the bottom (not all the way) and there should be some questions to answer

What is the main reason to create flash cards?
O to record information to commit to memory
O to place main ideas on a graphic organizer
to show how concepts relate to each other
to identify any questions on the material

Answers

the main reason it to create flash card is the first one

The main reason to create flash cards is to record information to commit to memory.

What is flash card?

The term flash card is known to be a small card that is often made and it is one that contains words, numbers, or pictures that one can learn with.

Conclusively, note that a key  reason to create flash cards is to record information to commit to memory as one can be able to remember easily pictures of what they have learnt.

Learn more about flash cards  from

https://brainly.com/question/16610220

#SPJ2

Can a computer evaluate an expression to something between true and false? Can you write an expression to deal with a "maybe" answer?

Answers

Answer:

yes it can

Explanation:

Computers cannot evaluate an expression to be between true or false.

Expressions in computers are represented in boolean values; i.e. they can only take one of two values (either true or false, yes or no, 1 or 0, etc.)

Take for instance, the following expressions will be evaluated to true, because the expressions are true.

[tex]\mathbf{1 + 2 = 3}[/tex].[tex]\mathbf{5>4}[/tex].[tex]\mathbf{4 + 4 <10}[/tex]

The following expressions will be evaluated to false, because the expressions are false.

[tex]\mathbf{1 + 2 > 3}[/tex].[tex]\mathbf{5=4}[/tex].[tex]\mathbf{4 + 4 >10}[/tex]

The above highlights show that, a computer cannot evaluate expressions to another value other than true or false

Read more about computer expressions at:

https://brainly.com/question/17500565

Which of the following are signatures for constructors in the Rectangle class?

----Choose all options that apply.-----


A. Rectangle(double len1, double len2, double len3, double len4)

B. Rectangle(double len)

C. Rectangle(int len)

D. Rectangle(int len, int wid)

E. Rectangle()

F. Rectangle(double len, double wid)

Answers

Answer to this answer is B because

constructor is a special method that's also called once memory is allocated for a freshly constructed object to initialize it, and further  discussion can be defined as follows:

It has the same identity as the class or struct, so it normally sets up the new object's data members.In the Rectangle class if it calculates the area. so, it takes two parameters that are "length, width", that is equal to "Rectangle(int len, int wid)".

Therefore, the final answer "Option D".

Learn more:

brainly.com/question/14239397

Xcode, Swift, and Appy Pie are all tools for doing what? A: Writing code in Java. B: Creating smartphone apps. C: Creating apps to run on a desktop or laptop. D: Writing code in C#​

Answers

Answer:

Creating smartphone apps

Explanation:

Took the test, got 100, read the lesson on slide 3 towards the bottom

Select all that apply.
In the File tab, you can:
send documents as e-
mail attachments
post documents as blogs
export documents as PDF/XPS
record document macros

Answers

Answer:

send documents as e-mail attachments

post documents as blogs

export documents as PDF/XPS

does anyone know what type of Honda this is and the year of it lol this isn’t school related

Answers

my car guy boyfriend said that he thinks its a van due to the space and its definitely a newer Honda but not sure what year. he said don't quote him on it  tho lol

Which statement is true about asking questions while reading?
It is a system that keeps readers from understanding a text's purpose.
O It is a strategy that readers use only when reading textbooks.
O It is a system that strong readers do not use.
O It is a strategy that helps people be active readers.

Answers

Answer:

It is a strategy that helps people be active readers.

Explanation: Poggers m8

Answer:

D

Explanation:

how can parents be health educators in family​

Answers

Answer:

They can be health educators in family because they are your parents.

Explanation:

The reason why is because since they are your parents that means they have kids, so they probably know the ins and outs of parenting and running a family.

I don't even understand what I'm supposed to do.

Assignment/ Question
Alex is the new office manager at a small advertising firm. One responsibility is to manage the technology being used by the employees. However, it turns out that they have been using outdated software and could use some upgrades! Before launching a campaign to modernize the office software, Alex needs to know exactly what kinds of software to recommend, so a survey will be distributed to find out what common file types the employees use. Please help by explaining what a file type is, what the different kinds are, and what each one does best. Write a paragraph of at least five sentences that Alex can include at the top of the survey.
Alex collects the survey sheets and combines the results. Now your expertise is needed! Please fill out the file content that matches the file type, as well as recommending a particular piece of software.

Answers

Answer:

i tried but i can figure it out

Answer:

You have to fill into the table what the file type and recommendations are (for example, .xls is a spreadsheet and Excel is the software is the recommendation).  Hope that helps a bit!

Explanation:

Other Questions
whats the slope intercept form of y=3x-2 Which phrase best describes a scenario in Excel 2016? Ten is no less then a number q multiplied by 6. Hey, I need help. please and thank you! How is the simile used in this sentence? Why is it important that federal, state, and local governments can tax? A ping pong ball rolls off a 5.Om high table and lands on the floor, 3.0maway from the table. How long is the ball in the air? Help me please Im timed One of the pieces of evidence supporting energy quantization was the line spectra of elements. Why does this demonstrate energy quantization? a) Photons are packets of energy that act both as a particle and a wave.b) The spectra is continuous and shows emission at all wavelengths.c) There are sharp emission lines demonstrating discrete energy levels. d) All compounds emit light in the ultraviolet and visible regions specifically. 4. Generate 3 "rules" for selecting a painting that would be appropriate for thewaiting room. The density of a material is a/an Select the term that is suggested by the fugure According to Joseph Schumpeter, what does economic progress depend on? A. technological change in the form of new products B. competition, especially price competition C. the initial endowment of economic resources, such as the amount of labor and capital available D. government protection of competition please help asap, i will give brainliest Explain how your answer to CTQ 6 is consistent with your answer to CTQ 5. ASAP PLEASEWhen a text encourages the reader to be eve or do something, the author's purpose is:To entertainto informTo persuadeTo explain what is the value of x What are 3 words that can be associated with positive numbers? Which number produces a rational number when added to 0.5? A. 1.73205081 B. 1/4 C. 0.54732871 D. 3 if you gave someone an apple if you had 500 apples and then another 2x apples and then 3x apples next 456x how much left man?????????????????????????