LAB2_Python1

This lab was an easy lab, because all I had to do is input the numbers and make the python execute the sum, difference, product and division with quotient. I didn’t have any errors at all. Heres the script.

 

inputStr = raw_input(‘Please enter the first integer: ‘)
inputInt = int(inputStr)

inputStr = raw_input(‘Please enter the second integer: ‘)
inputInt = int(inputStr)
billsInt = 20
x = 8
y = 20
print (‘The sum of 20 and 8 is: 28’)
print (‘The difference of 20 and 8 is: 12’)

print ‘The product of ‘,billsInt,’ times 8 is: ‘, billsInt*8

print ‘The quotient of ‘,billsInt,’ divide 8 is: ‘, billsInt/8, ‘with’, billsInt%8