计算平均收入
变量可用于存储信息,并能高效地读取和处理已存储的数值。
三家公司的收入已分别存储在 revenue_1、revenue_2 和 revenue_3 中。请计算这几家公司的总收入以及平均收入。
本练习是课程的一部分
Python 金融入门
交互式实操练习
通过完成这段示例代码来试试这个练习。
# Create the variable total and print the total revenue
total = ____
print(total)变量可用于存储信息,并能高效地读取和处理已存储的数值。
三家公司的收入已分别存储在 revenue_1、revenue_2 和 revenue_3 中。请计算这几家公司的总收入以及平均收入。
本练习是课程的一部分
通过完成这段示例代码来试试这个练习。
# Create the variable total and print the total revenue
total = ____
print(total)