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
Answer:
start with what you know
Explanation:
Answer:
i feel the same as you tbh
Explanation:
Answer:
in general terms a sample resume would have less on it with more of a general overview,while a full resume has the whole 9 yards
Answer:
I do believe so
Explanation:
Most websites have this, as far as I know