subject

Edhesive 7.6 lesson practice python def mystery(a, b = 8, c = -6):
return 2 * b + a + 3 * c

#MAIN
x = int(input("First value: "))
y = int(input("Second value: "))
z = int(input("Third value: "))

1) Suppose we add the following line of code to our program:

print(mystery(x))
What is output when the user enters 1, 1, and 1?

2)Suppose we add the following line of code to our program:

print(mystery(x, y, z))
What is output when the user enters 8, 6, and 4?

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 14:00
Technician a says that with self-adjusting clutch systems, the release bearing constantly rotates. technician b says that the ball bearing portion of the release bearing should be lubricated with high-temperature grease during routine maintenance. which technician is correct?
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a.an advanced knowledge of physics and math b.an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Anul 2017 tocmai s-a încheiat, suntem trişti deoarece era număr prim, însă avem şi o veste bună, anul 2018 este produs de două numere prime, 2 şi 1009. dorel, un adevărat colecţionar de numere prime, şi-a pus întrebarea: “câte numere dintr-un interval [a,b] se pot scrie ca produs de două numere prime? “.
Answers: 3
question
Computers and Technology, 23.06.2019 21:00
Alcohol’s affects on the cornea and lens of the eye make it more difficult
Answers: 1
You know the right answer?
Edhesive 7.6 lesson practice python def mystery(a, b = 8, c = -6):
return 2 * b + a + 3 * c<...
Questions
question
Mathematics, 28.06.2021 22:10
question
English, 28.06.2021 22:10
question
Health, 28.06.2021 22:10
question
Mathematics, 28.06.2021 22:10
Questions on the website: 13722367