subject

Read the following code, written to calculate an average: def main():
num1 = 83
num2 = 75
num3 = 99

average = num1 + num2 + num3 / 3
print("Average: " + str(average))
main()

How can the average calculation be corrected in order to return the correct output?

Change the division symbol to the multiplication symbol
Place parentheses around the variables to indicate the order of operation
Place quotation marks around the variable names in order to make a string literal
Use the numeric values instead of variable names

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
Which law requires employers to provide safe working environments for their employees? a. civil rights act b. fair labor standards act c. occupational safety and health act d. wagner act
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
This graph compares the cost of room and board at educational institutions in texas.
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Select the correct answer from each drop-down menu. which types of computer networks are bigger as well as smaller than a man? a man is a network of computers that covers an area bigger than a , but smaller than a .
Answers: 1
question
Computers and Technology, 23.06.2019 15:30
The song about casey jones a railroad engineer who gives his life on the job would most likely gall under the folk song category of? a-work song b-nonsense song c-religious song d-ballad
Answers: 1
You know the right answer?
Read the following code, written to calculate an average: def main():
num1 = 83
num2...
Questions
question
English, 19.11.2019 07:31
question
Physics, 19.11.2019 07:31
question
Mathematics, 19.11.2019 07:31
Questions on the website: 13722363