I tried changing the object types of the function variables, I tried many things from making them global to making a new function but still it shows the same error while executing the program!!
Pls debug the code anyone!!
Here's the full code: "https://pastebin.com/DE00hAnt"