How to loop a function with two different intervals?
I want the 1st instance running every 3 seconds and the 2nd instance running every 6 seconds
import time
def test(name, frequency):
while True:
print(name)
time.sleep(frequency)
But it only runs the first function, I want them running in the same time but two different intervals (3seconds and 6 seconds)
test("one", frequency=3)
test("two", frequency=6)
Thank you!