There is a predefined function that takes a word as an input and prints it. Now your task is to design a wrapper that will call the function twice.
Function decorators
Do twice!
Report a typo
Sample Input 1:
Hi!Sample Output 1:
Hi!
Hi!Write a program in Python 3
def do_twice(function):
# YOUR CODE HERE
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.