Lab # 3
EXPLANATION: In this la will apply some basics functions such as raw_input and print with some mathematical functions depending of the variable or numbers.
1.- Open Python IDLE.
2.-Type the code in order to run the program (this program contains variables which is x and y and both aare integers).
3.- The program running (the variable in my case were 8 and 10)
Source codes:
x = input(“Please insert the first number: “)
intVar = int(x)
y = input(“Please insert the second number: “)
intVar = int(y)
x = int(x)
y = int(y)
print (“The sum of”, x, “and”, y, “is”, x+y)
print(“The difference of”, x, “and”, y, “is”, x-y)
print (“The product of”, x, “and”, y, “is”, x*y)
print (“The quotient of”, x, “and”, y, “is”, x/y)
print (“end”)