Skip to content

Instantly share code, notes, and snippets.

@agusrichard
Last active January 23, 2021 13:27
Show Gist options
  • Save agusrichard/c48107337d749992df49bf5468820c81 to your computer and use it in GitHub Desktop.
Save agusrichard/c48107337d749992df49bf5468820c81 to your computer and use it in GitHub Desktop.
# Function with one argument and returns string
def tell_me_your_age(age):
return f'I am {age} years old.'
# Function with one argument (string) and returns string
def introduce(name):
return f'HI... My name is {name} and nice to see you!'
# Function with one function as argument and returns its value
def introduce_john(func):
return introduce('John')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment