(Compute expressions) Write a program that displays the result of (9.5 * 4.5 - 2.5 * 3)/45.5 - 3.5
Python code:
#Computer the expression
print((9.5 * 4.5 - 2.5 * 3)/(45.5 - 3.5))
Output:
Python 3.2.1 (default, Jul 10 2011, 21:51:15) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>>
0.8392857142857143
>>>