My question is how do you allow a public chat value to affect a def for example:
c = 1
def dd():
if c == 1:
print("hi")
else:
c = input()
dd()
dd()
When I run this I get an error since for the var "c" isn't defined. How can I fix this? (Keep in mind this is just a simple example of my problem)
Honestly I tried nothing since there is only 1 way to fix this issue.