Tuesday, May 7, 2024

📑 Decorated Built-in Functions

📑 Task

1) What effect for the built-in function will we see after running this code?
2) Suggest a similar technique for rounding the results of calculations
of built-in mathematical functions, and also
provide a way to revert to the original built-in function

📑 Answer

1) The decorated print function now prints each argument
with a space at the end and flushes the output,
pausing for 1 second after printing each argument
2)

No comments:

Post a Comment