Apr-29-2021, 05:08 PM
The basic idea I have is something like this, but with actual python builtins:
def somefunc(): print('Something') pause print('Other Thing') somefunc() somefunc()Expected output:
Output:Someting
Other Thing
I used to think that yield
could do this, but as I have found out, yield simply makes a generator. Is there a built in solution, or some other way to do this?