subject

I keep getting a syntax error for this block of code and I do not know why. elif(int(numRooms) >= 20)
print("you get a 20% discount")
discountPercent=20

elif(int(numRooms)>=10)
print("you get a 10% discount")
discountPercent=10

Statment expected, found Py:ELIF_KEYWORD

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
What are the most likely causes of conflict at the meeting? check all that apply.
Answers: 1
question
Computers and Technology, 22.06.2019 21:30
This graph compares the total cost of attending educational institutions in texas. the graph demonstrates that the cost at private and public technical schools greatly varies.
Answers: 2
question
Computers and Technology, 23.06.2019 02:00
What is the main benefit of minimizing the ribbon in word? more options will be accessible through customized keystrokes. more of the document will be viewable without needing to scroll. fewer controls will be accessible to the user by using the mouse. fewer editing options will be available without entering a password.
Answers: 1
question
Computers and Technology, 23.06.2019 10:50
The volume v and paper surface area a of a conical paper cup are given by where r is the radius of the base of the cone and h is the height of the cone. a. by eliminating h, obtain the expression for a as a function of r and v. b. create a user-de ned function that accepts r as the only argument and computes a for a given value of v. declare v to be global within the function. c. for v ! 10 in.3 , use the function with the fminbnd function to compute the value of r that minimizes the area a. what is the corresponding value of the height h? investigate the sensitivity of the solution by plotting v versus r. how much can r vary about its optimal value before the area increases 10 percent above its minimum value?
Answers: 1
You know the right answer?
I keep getting a syntax error for this block of code and I do not know why. elif(int(numRooms) >...
Questions
question
Biology, 10.03.2021 14:50
question
Biology, 10.03.2021 14:50
question
Computers and Technology, 10.03.2021 14:50
question
Mathematics, 10.03.2021 15:10