lab 2

Lab Description: In this lab, we will choose two real numbers values for X and Y. Using python as a calculator, we will use the x and y values and set in different set of operations ( +, -, *, /, %, <, and >).

Source Code:

>>> x = 8
>>> y = 5
>>> x + y
13
>>> x – y
3
>>> x * y
40
>>> 8 / 5
1.6
>>> 8 % 5
3
>>> 8 > 5
True
>>> 8 < 5
False

la foto

Leave a Reply

Your email address will not be published. Required fields are marked *