164k views
5 votes
Christina used the following expression to calculate the average ages of her three program users: average = age1 + age2 + age3 / 3 However, her output is not correct. What did she do wrong?

A.She did not use parentheses around the age values to indicate the proper order of operations.
B.She did not use quotation marks around the age values to indicate the proper order of operations.
C.She should have used the multiplication symbol instead of the division symbol.
D.She should have used a string function to perform the calculation.

User Atharva
by
7.9k points

2 Answers

2 votes

Answer:

A. She did not use parentheses around the age values to indicate the proper order of operations.

Step-by-step explanation:

Because python is sensitive to order of operations, just like we are.

User Justin Balvanz
by
8.5k points
4 votes
I am thinking it's A. Not so sure though.
User Suliman
by
8.7k points