game.py
def calc_stats(self):
        """ Calculate character per minute/second """
        while self.running:
            time.sleep(0.1)
            self.counter += 0.1
            cps = len(self.type_area.get()) / self.counter
            cpm = cps * 60
            self.speed_label.config(text=f"Speed: \n{cps:.2f} CPS\n{cpm:.2f} CPM")
 Calculate character per minute/second 
Calculate character per minute/second
Calculate character per minute / second
def calc_stats(self):
        while self.running:
            time.sleep(0.1)
            self.counter += 0.1
            cps = len(self.type_area.get()) / self.counter
            cpm = cps * 60
            self.speed_label.config(text=f"Speed: \n{cps:.2f} CPS\n{cpm:.2f} CPM")
def calc_stats ( self ) : while self . running : time . sleep ( 0.1 ) self . counter += 0.1 cps = len ( self . type_area . get ( ) ) / self . counter cpm = cps * 60 self . speed_label . config ( text = f"Speed: \n{cps:.2f} CPS\n{cpm:.2f} CPM" )
Calculate character per minute/second
Calculate character per minute / second
""" Calculate character per minute/second """
self