@@ -39,8 +39,8 @@ def a_is_equal_to_b(a, b):
39
39
40
40
def a_is_less_than_b (a , b ):
41
41
# Uncomment this next line and replace ?? with the right operator
42
- # return a ?? b
43
- pass
42
+ return a < b
43
+
44
44
45
45
check_that_these_are_equal (
46
46
a_is_less_than_b (1 , 2 ),
@@ -63,8 +63,8 @@ def a_is_less_than_b(a, b):
63
63
print ("Function: a_is_greater_than_b" )
64
64
65
65
def a_is_greater_than_b (a , b ):
66
- # return a ?? b
67
- pass
66
+ return a > b
67
+
68
68
69
69
check_that_these_are_equal (
70
70
a_is_greater_than_b (1 , 2 ),
@@ -87,8 +87,8 @@ def a_is_greater_than_b(a, b):
87
87
print ("Function: a_is_less_than_or_equal_to_b" )
88
88
89
89
def a_is_less_than_or_equal_to_b (a , b ):
90
- # return a ?? b
91
- pass
90
+ return a <= b
91
+
92
92
93
93
check_that_these_are_equal (
94
94
a_is_less_than_or_equal_to_b (1 , 2 ),
@@ -111,8 +111,8 @@ def a_is_less_than_or_equal_to_b(a, b):
111
111
print ("Function: a_is_greater_than_or_equal_to_b" )
112
112
113
113
def a_is_greater_than_or_equal_to_b (a , b ):
114
- # return a ?? b
115
- pass
114
+ return a >= b
115
+
116
116
117
117
check_that_these_are_equal (
118
118
a_is_greater_than_or_equal_to_b (1 , 2 ),
@@ -135,8 +135,8 @@ def a_is_greater_than_or_equal_to_b(a, b):
135
135
print ("Function: a_is_not_equal_to_b" )
136
136
137
137
def a_is_not_equal_to_b (a , b ):
138
- # return a ?? b
139
- pass
138
+ return a != b
139
+
140
140
141
141
check_that_these_are_equal (
142
142
a_is_not_equal_to_b (1 , 2 ),
@@ -161,8 +161,8 @@ def a_is_not_equal_to_b(a, b):
161
161
# May be a little tricky — search for
162
162
# "python check if string contains substring"
163
163
def a_is_within_b (a , b ):
164
- # return a ?? b
165
- pass
164
+ return a in b
165
+
166
166
167
167
check_that_these_are_equal (
168
168
a_is_within_b ("e" , "hello" ),
0 commit comments