I tried passing in a dictionary into a threading function
enemy_movement_thread = threading.Thread(target=enemy_movement, args= data)
enemy_movement_thread.start()
but an error occurred:
Exception in thread Thread-8:
Traceback (most recent call last):
File "C:\Users\ryanc\AppData\Local\Programs\Python\Python39\lib\threading.py", line 954, in _bootstrap_inner
self.run()
File "C:\Users\ryanc\AppData\Local\Programs\Python\Python39\lib\threading.py", line 892, in run
self._target(*self._args, **self._kwargs)
TypeError: enemy_movement() takes 1 positional argument but 7 were given