OP 22 February, 2021 - 12:56 PM
Ok so Im quite ew to python and my code looks like this
and I get an error saying that counter is not defined that vanishes when I do counetr = counter + 1 but I guess that counter += 1 is more efficient, any thoughts?
Code:
counter = 1
def question():
#some code here
counter += 1
and I get an error saying that counter is not defined that vanishes when I do counetr = counter + 1 but I guess that counter += 1 is more efficient, any thoughts?