Ich versuche, ein Programm zu schreiben, das eine Eingabe von zwei Zahlen fordert und dann die Summe, das Produkt und den Durchschnitt druckt, indem Sie es ausführen. Ich schrieb ein Programm, aber es fragt eine Eingabe für 2 Zahlen jedes Mal, wenn ich eine Summe oder Durchschnitt oder Produkt brauche. Wie kann ich alle 3 auf einmal bekommen, nur einmal zwei Eingaben machen.Summe/Durchschnitt/Produkt in Python
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))