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? (5 points)


A) Change the division symbol to the multiplication symbol


B) Place parentheses around the variables to indicate the order of operation


C) Place quotation marks around the variable names in order to make a string literal


D) Use the numeric values instead of variable names



Answer :

Other Questions