In Lab 2, I programmed Python to take two numbers and display the sum, difference, product and quotient.
numStr = input(“Please enter the first number: “)
intvar1 = int(numStr)
numStr2 = input(“Please enter the second number: “)
intvar2 = int(numStr2)
print (“The sum of “,intvar1, “and “,intvar2, “is: “, intvar1 + intvar2)
print (“The difference of “,intvar1, “and “,intvar2, “is: ” ,intvar1 – intvar2)
print (“The product of “,intvar1, “and” ,intvar2, “is: “,intvar1 * intvar2)
print (“The quotient of”,intvar1, “and” ,intvar2, “is: ” ,intvar1//intvar2, “with remainder”, intvar1%intvar2)