functions considered as the first-class objects in Python code example
Example: python first class functions
# Python program to illustrate functions
# can be treated as objects
def shout(text):
return text.upper()
print (shout('Hello'))
yell = shout
print (yell('Hello'))