1. Engineering
  2. Computer Science
  3. write a single statement that assigns avgsales with the average...

Question: write a single statement that assigns avgsales with the average...

Question details

Write a single statement that assigns avg_sales with the average of num_sales1, num_sales2, and num_sales3. Sample output for the given program is:

5.0

NOTE: Our system will run the following program several times, each time automatically changing the variable values above your code, to make sure you code works for all possible values. You should not focus on how those values change; our system creates multiple programs behind the scenes. Just focus on the code you need to write, independently of those values. See How to Use zyBooks in your library for more info.

num_sales1 = 3
num_sales2 = 4
num_sales3 = 8
avg_sales = 0

''' Your solution goes here '''

print(avg_sales)

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution