Created
April 7, 2022 08:06
-
-
Save timolesterhuis/39d81628e39ee0c4521a23d3d2698369 to your computer and use it in GitHub Desktop.
This file contains 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
# 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