Comparison operators assignment
From WLCS
Directions:
- Open a text editor (Applications->Accessories->gEdit Text Editor)
- Put your name at the top
- Save the file as YOURLASTNAME_comparison.txt
- Complete the exercises below in this file. If you use DrPython, then be sure to copy your code back into this file
- Be sure to number each of your answers!!
References:
Exercises:
- Evaluate the following comparisons as True or False
- Assume x = 6 and y = 4
- x > 2
- y <= x
- x == 2
- y != x
- x + 2 > y * 2
- y * x < x * y
- x + x >= y * y
- 2*(x-10) < 0
- y - 4 == x - 6
- x / y > y / x
Submit:
- Submit the file to School Web Lockers