Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)
Add Comment
Please, Sign In to add comment