Guest User

Untitled

a guest
Feb 19th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. def greet(msg):
  2. return msg.upper()
  3.  
  4. def speak(msg):
  5. return msg.lower()
  6.  
  7. def display(func):
  8. # storing the function in a variable
  9. message = func('Welcome to Python Programming.')
  10. print message
  11.  
  12. display(greet)
  13. display(speak)
Add Comment
Please, Sign In to add comment