I'm new to python and I'm wondering if there's a function that would repeat an event at certain intervals, kinda like
setInterval()
in Javascript. I know I could just use
time.sleep()
inside a regular loop but I'm wondering if there's a nicer way to do it. Thanks in advance.