I am writing a small game in Python 3.7. It took time to score. Those. every second since the launch of the program, one point should be added to the score. There is this code that needs to be improved to a working state or to offer alternative ways to solve the problem.
score = 0 def label2(): global SCORElabel SCORElabel = c.create_text(350, 10, width=300, text="Score: " + str(score), fill='#fff', anchor=NW) def scoremeter(): global score game_time = time.clock() if game_time//1==0: score+=1 c.delete(SCORElabel) label2() scoremeter() else: scoremeter()