For questions 5-8, consider the following code:

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: "))
Suppose we add the following line of code to our program:

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

Answers

Answer 1

Answer:

The answer is 31

Explanation:

.

Answer 2

If we add the line of code print(mystery(x)) and our input are 1, 1 and 1 the output will be -1. If we add the line of code print(mystery(x, y, z)) and our inputs are 8, 6 and 4 the out put will be 32.

What will be the python code?

This is the python code:

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: "))

print(mystery(x))

#What is output when the user enters 1, 1, and 1?

#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?

The code is written in python

The first line of code defines a function named mystery with the argument a, b by default is equals to 8 and c is equals to -6 by default.

Then the code return the product of b and 2 plus a and plus the product of 3 and c.  

x, y and z variable that stores the users input.

Then we call the function mystery  with a single argument

Then we call the function mystery with three argument x, y and z which are the users input.  

The first print statement with the input as 1, 1 and 1 will return -1

The second print statement with the input 8, 6 and 4 will return 32.

Therefore, If we add the line of code print(mystery(x)) and our input are 1, 1 and 1 the output will be -1. If we add the line of code print(mystery(x, y, z)) and our inputs are 8, 6 and 4 the out put will be 32.

Learn more about  inputs on:

https://brainly.com/question/20295442

#SPJ2


Related Questions

Which sections should you survey while reading difficult material?
a. Diagrams
C. Main ideas
b. Visual Aids
d. All of these
Please select the best answer from the choices provided
Ο Α
OB
ОС
D

Answers

I would say all of the above since they all can help to some degree. If I’m right can you mark brainliest?

When reading difficult material, pay close attention to diagrams, key points, visuals, and so on. As a result, the answer to this question is D, or all of them.

What is survey?

A survey in human subjects research is a set of questions designed to elicit specific information from a specific group of people.

Surveys can be conducted over the phone, by mail, on the internet, or even on street corners or in shopping malls.

Reading comprehension, vocabulary, phonics, fluency, phonemic awareness, and a variety of other skills must all be considered when reading. Each of them has a distinct role to play in any literary work.

Before reading, each reader must meet a number of requirements. When conducting the survey, you must prioritize the diagram because it quickly and efficiently interprets all of the data.

However, the primary ideas and visual aids are equally important in order to absorb the information quickly.

Thus, the correct option is D.

For more details regarding survey, visit:

https://brainly.com/question/17373064

#SPJ7

In Fantasy Football, participants compete against one another by choosing certain players from different NFL teams that they think will do the best on any particular week. Top Fantasy Football players spend hours every day looking at statistics of the players and the teams. Spreadsheets and software tools are used to choose the best players. This process would be considered __________.
a. Data persistence
b. Data divide
c. Data collection
d. Data mining

Answers

This process that would be considered in the above scenario is Data mining.

What is data mining?

Data mining is known to be the act or method of knowing more about data via;

Leaning raw data.Finding patterns.Forming models.Testing those models.

Note that  It is a method that uses statistics, machine learning, and database systems and it will be good tool to be used in the scenario above.

Learn more about Data mining from

https://brainly.com/question/14776357

Select the correct technical term for each definition by using the drop-down menus.
A keyboard, mouse, and microphone are examples of
А
Mis an input device used to display video for video conferencing,
A
is an input device that responds to finger touch.
DONEN

Answers

The answer response are:

A keyboard, mouse, and microphone are examples of input devices.A display device is an output device used to display video for video conferencing.A touchpad is an input device that responds to finger touch.

What are the input devices?

Input devices are devices that allow users to input information into a computer, such as a keyboard, mouse, or microphone.

A display device is an output device that is used to present information in visual form, such as a computer screen or television screen. Display devices are used for video conferencing to show visual information to participants.

In all, a keyboard, mouse, and microphone are examples of input devices, a display device is used for output and video conferencing, and a touchpad is a type of input device that responds to finger touch.

Learn more about input devices from

https://brainly.com/question/12081537

#SPJ1

Can someone come and see if I have answered this question correctly? Please ...
if i have a mistake or somewhere i can go deeper can you correct me? Thank you

Answers

Answer:

presentation or visualization

Presentation or visualization

Who makes "white box" computers?
O non-major companies
O Microsoft
Asus
Apple

Answers

Answer:

O NON- MAJOR COMPANIES.

explain with example how does delay marriage help for population management​

Answers

Answer:

Explanation:

The population in western richer countries is decreasing but the population in some poorer developing countries is increasing and normally in the poorer communities where education is minimal or not encouraged then men and women tend to get married young and have many children. Population management is not necessary because when men and women are educated and have good standard of living with a good social system of caring for the old then married couples will tend to have one or two kids or none at all. Population control was practised by PrC and it managed to alleviate 60% of the people out if poverty and reduced the population by implementing one child policy. Now China has more male than female creating social problems of finding a wife. In the West with good social system to care for the elderly more couples are not having children. In the west where living conditions and educational level are better the Caucasian race is not having that many children as the other races in developing countries. Education and financial independence of women will encourage married women to have one or two kids so that they can still pursue their career after marriage. With modern contraception you can delay having children until you are ready for them. The concept of delaying marriage to reduce population does not hold true. However the whites’ population is decreasing every year as compared to the other non white races. The reason is that in the poorer non white countries the population is higher because of subservient position of the women who have no say in birth control

What do you like least about coding in python?​

Answers

Something I dislike is it emphatically controverts decades of programming experience with its syntax.

This motherboard already has 1GB of RAM installed in the DIMM1 slot. The customerwould like to upgrade to 4GB total memory, use the existing module if possible, and usedual-channel. What memory modules are needed? What capacities and how many ofeach capacity are required?

Answers

Answer:

The two phases to the context of this discussion are listed follows.

Explanation:

Solution 1: Delete 1 GB of current RAM as well as install another DIMM0 Chan A slot through one 2 GB of double-channel RAM. (thinkable unless the 2 GB RAM is provided by the motherboard in what seems like a DIMM0 Chan A slot)  Solution 2: whether there's an unused or blank slot, perhaps one 1 GB dual-channel Ram could be mounted in some other slot at around the same speed or frequency.  

It's quite safer to mount memory with appropriate frequencies across both situations.

The two phases are as follows:

Delete 1 GB of current RAM and install another DIMM0 Chan A slot through one 2 GB of double-channel RAM. (thinkable unless the 2 GB RAM is given by the motherboard in what seems like a DIMM0 Chan A slot)  .In the case when there's an unused or blank slot, so one 1 GB dual-channel Ram could be mounted in some other slot at around the similar speed or frequency.  

It's quite safe to mount memory having appropriate frequencies across both situations.

Learn more: brainly.com/question/17429689

In access, what are the different parts of a database application called?.

Answers

Answer:

An application part can be as simple as a single table, or it can include several database objects, including tables, forms, reports, and even relationships. In Access, you can open up the Application Parts gallery to view the built-in parts.

Explanation:

1. P_OP_EW_RE
2.H_R_W_R_
3._ON_E_TI_IT_
4.P_OC_D_RE
5._O_TW_R_​

Answers

Answer:

poopaewr4vh23rbu2rfbu2rfu

Explanation:

Which word describes an important characteristic of good computer
algorithms?
O A. Numerical
B. Complex
C. Lengthy
D. Literal

Answers

I personally would pick Numerical but lengthy would work as well tbh both would work

The word that describes an important characteristic of good computer algorithms is Numerical. Thus, option A is correct.

What is computer algorithms?

The term computer algorithms has been defined as the a set of the instructions that would describes a step-by-step process for solving a specific problem. It has been often used in computer programming to automate repetitive tasks and streamline complex operations.

When an algorithm has integrated into a computer program, the process becomes automated, allowing the computer to perform the task repeatedly with minimal input from the user.

Therefore, the algorithm lacks the instructions for handling unexpected or the unanticipated results, the computer program may halt or encounter errors, potentially causing significant disruptions to the process.

Learn more about Algorithm on::

brainly.com/question/20533936

#SPJ7

Select the correct answer. What is the key function of a sales team? A. to maintain customer-retailer interaction B. to create appealing advertisements C. to maintain fan–developer communication D. to develop customer–fan relationships

Answers

Answer:

B

Explanation:

to make people want it buy it is the purpose

The option to send a publication in an e-mail is available in the _____ tab.

File
Home
View
Review

Answers

Answer:

File

Explanation:

Digital citizenship focuses on _____. Select 3 options.

Answers

Respect, Education, and Protect.

Digital citizenship focuses on the following:

B. helping and leading others

C. targeting potential cyber criminals.

D. creating positive online experiences

What is digital citizenship?

The capacity to operate a keyboard, mouse, and other components of the digital system, as well as to interact with others online, is known as digital citizenship.

It also refers to learning how to behave with respect and decency on digital platforms, as well as how to communicate effectively online and build relationships.

The major goal of digital citizenship is to foster a pleasant environment by teaching others about cybercrime and bullying and raising their awareness of these issues.

Thus, the correct options are B. helping and leading others

C. targeting potential cyber criminals.

D. creating positive online experiences

To learn more about digital citizenship, refer to the link:

brainly.com/question/11542933

#SPJ5

The question is incomplete. You most probably the complete question is given below:

enforcing your rights on others

helping and leading others

targeting potential cybercriminals

creating positive online experiences

promoting the common good

[Python] Spot the errors in the code
x = int(input()
if x == 5
print(x is equal to 5)
else:
print("x is not equal to 5")

Answers

Answer:

There's no string double quotes in the print statement on line 3.The input statement on line 1 is wrong. It should actually be the following ⇒ print(input(Hello World))

All print statements must contain double quotes around a string. Otherwise, it will be interpreted as a number, and will lead to an error.

can someone give me an window blur code in javascript like i mean full coding

Answers

Answer:

uh wha- what?!?!

Explanation:

no

find it urself

:P

jekqfjewil bored anyways

In a function template, the programmer substitutes __________ for __________. Group of answer choices arguments, parameters angle brackets, parentheses parameters, data types None of these parameters, arguments

Answers

Answer: parameters, data types

explain why a holiday on a cruise liner will be an ideal holiday​

Answers

Answer:

The great thing about a cruise holiday is that everyone in your party can please themselves yet still have a real holiday together. The kids can make new friends and take part in fun and educational activities during the day, while the adults unwind by the pool, learn a new skill or hit the casino.

Read the scenario and answer the question. Audrey had problems with her computer software recently. One of her programs shut down unexpectedly, but not because of a virus. Unable to troubleshoot the problem herself, Audrey called a computer technician, who gave her a checklist of things to look for and fix. Her software began to work again, but not for long. The following week, Audrey had the same problem with her software. What is the first step Audrey should take? Refer to the troubleshooting checklist. Scan the computer for viruses. Remove all unwanted files from the computer. Pay to have a technician repair the computer.

Answers

Answer:

Refer to the troubleshooting checklist.

Explanation:

I got it right in edge:)

Answer:

The answer is a btw

Explanation:

thanks for deleting my answer

Which term refers to a secure systems ability to protect against the unauthorized modification or destruction of information?.

Answers

Answer:

Integrity

Explanation:

After the Afton family dies what animatronics do their souls posses. Michael Afton dose not posses an animatronic but what dose Michael become and what is his animatronic "friend". UwU

Answers

Answer:

Michael becomes Golden Freddy.

Explanation:

I hate I know this and I know it's a joke but here we go

In theory, they all become -

Mrs. Afton - Ballora

Elizabeth - Circus Baby

William Afton - Doesn't really become anyone but he is inside Springtrap

The Crying Child - Theorised to be Golden Freddy

Michael Afton - Doesn't become anyone at all, but does have robot spaghetti of all the Sister Location animatronics// his friend is Eggs Benedict but no one knows for sure.

Can anyone tell me what wrong with this code the instructions are "Currently, this program will add 6 and 3 together, output the math problem and output the answer. Edit this code so that a random number is generated from 1 - 10 (inclusive) for the variables a and b. Also, instead of adding the two numbers together, the edited program should multiply them, and output the proper math problem and answer. Be sure to update every line of code to reflect the changes needed." My code runs but it hasa EOF. My code is

import random
random.seed(1,10)
a = random.randint (1,10)
b = random.randint (1,10)
print ("What is: " + str(a) + " X " + str(b) + "?")

ans = int(input("Your answer: "))

if (a * b == ans):
print ("Correct!")
else:
print ("Incorrect!")

Answers

Answer:

import random

a = random.randint(1,10)

b = random.randint(1,10)

answer = a * b

print(str(b)+" * "+str(a)+" = "+str(answer))

Explanation: So I am guessing you are on Edhesive Module 2.5 Intro to cs. Sorry it took so long but hopefully this works.

Which of the following shows the assignment of a string to a variable ? Select 3 options.
A. answer = 23
B. answer = '23'
C. answer = input (" How old are you ? ") D. answer = (23)
E. answer = " 23 "​

Answers

The answer is going to be D
the answer is D answer = (23)

Write 200 words about Japan? ​

Answers

Japan, island country lying off the east coast of Asia. It consists of a great string of islands in a northeast-southwest arc that stretches for approximately 1,500 miles (2,400 km) through the western North Pacific Ocean. Nearly the entire land area is taken up by the country’s four main islands; from north to south these are Hokkaido (Hokkaidō), Honshu (Honshū), Shikoku, and Kyushu (Kyūshū). Honshu is the largest of the four, followed in size by Hokkaido, Kyushu, and Shikoku. In addition, there are numerous smaller islands, the major groups of which are the Ryukyu (Nansei) Islands (including the island of Okinawa) to the south and west of Kyushu and the Izu, Bonin (Ogasawara), and Volcano (Kazan) islands to the south and east of central Honshu. The national capital, Tokyo (Tōkyō), in east-central Honshu, is one of the world’s most populous cities.

Please post detailed answers to the following questions. Please use complete sentences.

Pick a piece of art, music, or architecture and explain how it reflects our era. What will historians in the future learn about us by studying the elements of our culture?

Answers

Answer:

Music

Detailed Paragraph:

            I believe that those who really love and care about music are the ones who grew up listening to songs that touched them and spoke to them in a profound way. I remember being in middle school when the music I listened to defined so much of my identity. Thus, in return, it's almost our unspoken job to create a sound that will be amplified to the next generation, impacting them and impacting our society in return. If we can gain a more comprehensive awareness of how our art form is making a difference around us, we will undoubtedly become better musicians – musicians with a purpose.

how do u type please help

Answers

Answer:

use your keyboard

Explanation:

listen your 2 years old i know you can type daughter

Answer:

maybe try doing the same thing that you did a few minutes ago to type the exact same thing?

Explanation:

I am not about to explain every move that has to be taken to type a sentence -_-

Write a code segment that uses a while loop and the random.randint and print functions to generate and print random integers between or including 1 and 6 until a 6 is rolled. The code segment must also count the number of times the number 3 was generated and display that value once at the very end of its execution.

Answers

In python:

import random

i = 0

while True:

   w = random.randint(1,6)

   if w == 6:

       break

   elif w == 3:

       i += 1

   print(w)

print(f"3 was generated {i} times")

I don't exactly know how you want the output but you should be able to modify my code according to your needs. I hope this helps!

   

True or False? A list can be linear (items are arranged one after the other) or linked (each item has a pointer to the next item in the list).

Answers

Answer:

True

Explanation:

True

Reasoning it’s true because a list can be linear items arranged one after the other one

Write Python code for the following flowcharts

Answers

print("Enter a number")

number = input()

if number >= 1000: print("Bigger or equal to 1000")

else: print("Smaller than 1000")

This software application can be used to create multimedia presentations.
Excel
OneDrive
PowerPoint
Word

Answers

it would be powerpoint

Answer:

power point i think

Explanation:

Other Questions
write the equation for the function that has the shape of f(x)=x^3 but is moved three units to the left, seven units upward, and then reflected in the x-axis? What is the meaning of "inherently" as used in paragraph 12? A not very good B belonging to the basic nature of someone or something very important or noticeable D not having or showing complete trust in someone or something Could anyone help me find the area of these 2 shapes? 1st one is the rectangle and the second one is the trapezoid I think PLS ANYONE ILL GIV U BRAINLIEST!!!!!! You discover that the plate you selected had only been Inoculated with 0. 1mL of the dilution instead of Using the count data and observational data you acquired, re-calculate the number of CFUs in the original sample Can someone help me on this question? Ive been struggling on this for a while now. Ill give brainliest if you answer soon!!!A. What convinces you that the February 29 image is a reflection of the February 28 image about the given line of reflection?B. What convinces you that the March 1 image is a reflection of the February 29 image about the given line of reflection?C. What convinces you that the two reflections together complete a rotation between the February 28 and March 1 images? Tom is 8 years younger than John. Let j represent John's age in years. Write an algebraic expression to represent Tom's age in years. the sum of two consecutive odd numbers is 80 find the numbers The outer layer of bone _____.is a thin membraneis thick and hardlooks like a spongemakes red blood cells NAMEDATEPERIOD9.Kylie and Alyssa are working together to put 96 cookies on trays for the class to enjoy. Mrs. Grimtells them to divide them up by 8. Kylie says that means there will be 8 cookies on 12 trays. Alyssadisagrees and thinks there should be 12 cookies on 8 trays. Who is right? Why? (4 pts) Given that y = 10 cm and = 55, work out x rounded to 1 DP. 1. Jaymes is closing the register at the end of the day. He is in charge of counting all thechange. There are 129 coins counting only quarters and dimes. If Jason counts $27.00in these coins, how many quarters(x) and dimes(y) are there?Solve the system of equations to find the answer. x + y = 129.25x + .10y = $27.00a. X = 100, y = 29b. x = 70. y = 95C. X = 94, y = 35d. x = 150, y = 15 2.2The annual salaries of the employees working at the Island Resort are listed What is Nitrogen is an element found in nucleic acids. Where else is nitrogen found? A. proteins B. lipids C. carbohydrates Why did King Ferdinand and Queen Isabella of Spain agree to finance Columbuss expedition? Which clause completes the sentence by creating parallelism? regular exercise exercise regularly exercising regularly you get regular exercise. Find an explicit rule for the nth term of the sequence.-3, -15, -75, -375, ... For each situation below, write a sentence in German to say how you are doing. Now imagine you are in a new school and you are making friends with the students there. Write a short conversation in German of at least eight lines. -greet a new student -ask student his or her name -ask student how he or she is -ask where student is from -say goodbye There is only one square whose perimeter and area is same. What is the length of each side of this square?1) 52) 63) 34) 4 please help me with this equation :( The second largest planet in our solar system has a spectacular set of planetary rings, making it worthwhile to try and spot with your telescope. Which planet is it? please help (a is 12)