Created
February 7, 2018 10:55
-
-
Save goyalrohit/00f6b80d64edb9c3e15121270a3c2fde 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
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