I start a list outside all my functions say lst = []
.Every time I click my button the list appends a value of 1, and prints the sum of the list. If I click the button three times my list is lst = [1,1,1]
and would print 3
. Except for about 10% of the time, the list is suddenly empty and 1 gets appended to a random list (I'm assuming it's the same list just set back to empty). Then when I wait for my print statement it's either the list it's supposed to be or the new incorrect list that is occasionally taking my values. It works fine on my localhost and flask. please any help