So I am getting the error
[Previous line repeated 996 more times]
RecursionError: maximum recursion depth exceeded
The code I am running is
import threading
def hello_world(a):
threading.Timer(2.0, hello_world(a)).start() # called every minute
print(a)
print("Hello, World!")
hello_world('a')
I noticed that when there are no arguments in the hello_world function the error doesn't occur. But as soon as I need to pass in a parameter to the function I get the error. Can someone explain why that is the case and how to fix it?