простой счетчик щелчка в Python

click = False
click_counter = 0

if click == True:
	click_counter += 1
    click = False

print(click_counter)

# once the click becomes True
# one click adds to the click_counter
# Then click variable becomes False and start the process all over again
Rajitha Amarasinghe