#allOperationsRandom.py #randomly generate two floats, do all arithmetic operations import random #random() maxNum = eval(input("Enter the range of random numbers, i.e. 0 to ? ")) num1 = random.random() * maxNum num2 = random.random() * maxNum print("num1=", num1, " num2=", num2) sum = num1 + num2; #addition difference = num1 - num2; #subtraction product = num1 * num2; #multiplication quotient = num1 / num2; #division print("sum:", sum, "difference:", difference, "product:", product, "quotient:", quotient)