In Python 3, write a decorator function that has the following property:
1 answer:
Answer:
Python code is explained below
Explanation:
# decorator.py starts
def uppercase(fcn):
def wrapper():
original = fcn;
modified = str(fcn).upper() ;
return modified;
return wrapper();
# decorator.py ends
# greet.py starts
import decorator #to generate the decorator
def greetings(): #invokes the greetings function for output
print("Hello");
print(decorator.uppercase(greetings));
# greet.py ends
You might be interested in
I need the options to help you out, thanks. :)
You have to change the options
B. Put it in quotes if it is directly quoted as is and cite the source. You should likely also list the source in the works cited but not the phrase itself.
So this is called a modem we use it to send and receive info over telephone lines
Hope this helps
-scav
3.2 i believe. I looked it up though