r/stackoverflow • u/Nubian_Cavalry • Sep 02 '24
Python Bulk apply time.sleep(seconds)? In Python?
I’m writing a long questionnaire program for my resume, is there a way for me to make it so every single print statement/input in my main module as well as my functions will be preceded and followed by time.sleep(seconds) with a singular function or a few lines of code, rather than having to manually enter it between each line?
1
Upvotes
View all comments
Show parent comment
2
u/Nubian_Cavalry Sep 02 '24
Yeah I have it split up in four modules for readability, it’s basically just a more optimized version of my old if else spaghetti program when I first started out with python. Main, lists+dictionaries+counter variables, functions, and strings that are stored in the dictionary as variables for readability