Skip to content

Instantly share code, notes, and snippets.

@goyalrohit
Created February 7, 2018 10:55
Show Gist options
  • Save goyalrohit/00f6b80d64edb9c3e15121270a3c2fde to your computer and use it in GitHub Desktop.
Save goyalrohit/00f6b80d64edb9c3e15121270a3c2fde to your computer and use it in GitHub Desktop.
def greet(msg):
return msg.upper()
def speak(msg):
return msg.lower()
def display(func):
# storing the function in a variable
message = func('Welcome to Python Programming.')
print message
display(greet)
display(speak)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment