我想写一个程序,要求输入两个数字,然后通过运行打印总和,产品和平均值。我写了一个程序,但它每次需要输入2个数字,我需要一个总数或平均数或产品。我怎样才能一次完成所有3个,只做一次两个输入。蟒蛇总和/平均/产品
sum = int(input("Please enter the first Value: ")) + \
int(input("Please enter another number: "))
print("sum = {}".format(sum))
product = int(input("Please enter the first Value: ")) * \
int(input("Please enter another number: "))
print ("product = {}".format(product))