Decorator / Context Manager
Create a simple function that prints the paramenters value to console.
[4]:
def quotes(*args):
for _ in args:
print(_)
quotes('Honey Im home!', 'A car is a car until ...' )
Honey Im home!
A car is a car until ...
You should decorate this function so it can get its quotes from:
a text file
a csv file
a json file
a SQlite databs
[ ]: