Difference between revisions of "Comparison operators assignment"
From WLCS
Line 14: | Line 14: | ||
# x > 2 | # x > 2 | ||
# y <= x | # y <= x | ||
+ | Assume x = 5 and y = 1 | ||
+ | # x == 2 | ||
+ | # y != x | ||
'''Submit:''' | '''Submit:''' | ||
* Submit the file to [http://wlhs.schoolweblockers.com/ School Web Lockers] | * Submit the file to [http://wlhs.schoolweblockers.com/ School Web Lockers] |
Revision as of 12:14, 20 October 2010
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 = 2 and y = 4
- x > 2
- y <= x
Assume x = 5 and y = 1
- x == 2
- y != x
Submit:
- Submit the file to School Web Lockers