Using Python, create a prefix Decorator function (or Closure) over the print function. The decorator (which takes two parameters) shall return a new function that accepts a single parameter string. When called and supplied with this string, the decorated print function shall first print its own, internal prefix followed by the supplied input.
For example:
first = Decorator("Joe:")
second = Decorator("Carl:")
first("Are you hungry")
second("yes")
Which would produce:
Joe: Are you hungry
Carl: yes
def Decorator(prefix):
def fn(s):
print(prefix, s)
return fn
first = Decorator("Joe:")
second = Decorator("Carl:")
first("Are you hungry")
second("yes")

Using Python, create a prefix Decorator function (or Closure) over the print function. The decorator (which...