Created
July 9, 2022 14:24
-
-
Save pokey/f2b1e0e730091d734c63188fa6a79626 to your computer and use it in GitHub Desktop.
Code used in Cursorless tutorial part II
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def print_color(color, invert=False): | |
if invert: | |
print(invert_color(color)) | |
else: | |
print(color) | |
def invert_color(color): | |
if color == "black": | |
return "white" | |
print_color("black") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment