Skip to content

Instantly share code, notes, and snippets.

@pokey
Created July 9, 2022 14:24
Show Gist options
  • Save pokey/f2b1e0e730091d734c63188fa6a79626 to your computer and use it in GitHub Desktop.
Save pokey/f2b1e0e730091d734c63188fa6a79626 to your computer and use it in GitHub Desktop.
Code used in Cursorless tutorial part II
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