-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathex28.py
35 lines (33 loc) · 1.17 KB
/
ex28.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Number | Guess | X if wrong
# 1 | True
# 2 | False
# 3 | False
# 4 | True
# 5 | True
# 6 | True
# 7 | False
# 8 | False | Wrong, this is True
# 9 | False
# 10| False
# 11| True
# 12| False
# 13| True
# 14| False
# 15| False
# 16| False
# 17| True
# 18| True
# 19| False
# 20| False
# Study Drills
# 1 All equality operators... ==, !=, >, <, >=, <=, and, or, not, true, false, in, not in, is, is not. The in commands check if a variable is in a string, list, or tuple. The is commands checks if variables on either side of the operator point to the same object in memory.
# 2
# == Equal to
# != Not Equal to
# > Greater than
# >= Greater than or equal to
# < Less than
# <= Less than or equal to
# 3 Practiced the operators when checking my exercises (essentially did the exercise twice). Will continue to 'guess' what booleans will resolve to while coding.
# 4 Throw away paper from #3... it is in the python all-comment script with documentation on what is wrong.
# Note on on and, or statements.... python will return one of the operands when using things like "test" and "test". "False" and 1 returns false. "True" and 1 returns 1. "True or 1" gives true. False or 1 gives 1... need more research