Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 027_comparison.py #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions 027_comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def a_is_equal_to_b(a, b):

def a_is_less_than_b(a, b):
# Uncomment this next line and replace ?? with the right operator
# return a ?? b
# return a < b
pass

check_that_these_are_equal(
Expand All @@ -63,7 +63,7 @@ def a_is_less_than_b(a, b):
print("Function: a_is_greater_than_b")

def a_is_greater_than_b(a, b):
# return a ?? b
# return a > b
pass

check_that_these_are_equal(
Expand All @@ -87,7 +87,7 @@ def a_is_greater_than_b(a, b):
print("Function: a_is_less_than_or_equal_to_b")

def a_is_less_than_or_equal_to_b(a, b):
# return a ?? b
# return a <= b
pass

check_that_these_are_equal(
Expand All @@ -111,7 +111,7 @@ def a_is_less_than_or_equal_to_b(a, b):
print("Function: a_is_greater_than_or_equal_to_b")

def a_is_greater_than_or_equal_to_b(a, b):
# return a ?? b
# return a >= b
pass

check_that_these_are_equal(
Expand All @@ -135,7 +135,7 @@ def a_is_greater_than_or_equal_to_b(a, b):
print("Function: a_is_not_equal_to_b")

def a_is_not_equal_to_b(a, b):
# return a ?? b
# return a != b
pass

check_that_these_are_equal(
Expand All @@ -161,7 +161,7 @@ def a_is_not_equal_to_b(a, b):
# May be a little tricky — search for
# "python check if string contains substring"
def a_is_within_b(a, b):
# return a ?? b
# return a in b
pass

check_that_these_are_equal(
Expand Down