Assign the average of the values in the variables a, b, and c to a variable avg. Assume that the variables a, b, and c have already been assigned a value, but do not assume that the values are all floating-point. The average should be a floating-point value. Use Python.

Respuesta :

ijeggs

Answer:

a=1.2

b=2

c=3

sum = (a+b+c)

average = float(sum/3)

print(average)

Explanation:

Using python language, the three variables are created and assinged values (ints and float).

Sum is calculated with sum = (a+b+c)

average is calculated but casted to a float data type using this statement average = float(sum/3)