subject

Read the following code, written to calculate an average: def main(): num1 = 85 num2 = 95 num3 = 91 average = num1 + num2 + num3 / 3 print("Average: " + str(average)) main() Which line of code has an error and why? average = num1 + num2 + num3 / 3; It does not use quotation marks to indicate the string literal. average = num1 + num2 + num3 / 3; It does not follow the proper order of operations. print("Average: "str(average)); It requires an equal sign to properly calculate the output. print("Average: "str(average)); It requires a float() function to properly display the output

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:30
Is a string of code written to hurt others by damaging or destroying
Answers: 1
question
Computers and Technology, 22.06.2019 18:00
Suppose an astronomer discovers a large, spherical-shaped body orbiting the sun. the body is composed mostly of rock, and there are no other bodies sharing its orbit. what is the best way to categorize this body? a. planet b. moon c. comet d. asteroid
Answers: 1
question
Computers and Technology, 22.06.2019 20:50
What is the difference between windows 7 and windows 10?
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
Which option allows you to view slides on the full computer screen?
Answers: 1
You know the right answer?
Read the following code, written to calculate an average: def main(): num1 = 85 num2 = 95 num3 = 91...
Questions
question
Mathematics, 06.12.2019 21:31
Questions on the website: 13722363