Skip to content

Instantly share code, notes, and snippets.

@timolesterhuis
Created April 7, 2022 08:06
Show Gist options
  • Save timolesterhuis/39d81628e39ee0c4521a23d3d2698369 to your computer and use it in GitHub Desktop.
Save timolesterhuis/39d81628e39ee0c4521a23d3d2698369 to your computer and use it in GitHub Desktop.
# Functional programming is about immutable objects:
name = "John Doe" # string
age = 29 # int
weight = 98.7 # float
# and stateless functions:
def say_hello(to: str) -> None:
print(f"hello {to}!")
# What will the following code print to the console?
say_hello(name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment