Counter local - not working
def counter():
count = 0
count += 1
return count
print(counter())
print(counter())
print(counter())
1
1
1
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
def counter():
count = 0
count += 1
return count
print(counter())
print(counter())
print(counter())
1
1
1