Last active
January 23, 2021 13:27
-
-
Save agusrichard/c48107337d749992df49bf5468820c81 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
# 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