두 개의 숫자를 입력 한 다음 실행하여 합계, 제품 및 평균을 인쇄하는 프로그램을 작성하려고합니다. 나는 프로그램을 썼지 만 합계 나 평균값 또는 곱이 필요할 때마다 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))