typing_test/typing_test.py
def print_stats(self):
        """Print ACC/CPM/WPM to console"""
        correct = len(self.correct)
        total = correct + len(self.incorrect)
        accuracy = correct / total * 100
        print("ACC: {:.2f}%".format(accuracy))
        cpm = self.calculate_cpm(self.game_time)
        print("CPM: {:d}".format(cpm))
        wpm = self.calculate_wpm(self.game_time)
        print("WPM: {:d}".format(wpm))
Print ACC/CPM/WPM to console
Print ACC/CPM/WPM to console
Print ACC / CPM / WPM to console
def print_stats(self):
        correct = len(self.correct)
        total = correct + len(self.incorrect)
        accuracy = correct / total * 100
        print("ACC: {:.2f}%".format(accuracy))
        cpm = self.calculate_cpm(self.game_time)
        print("CPM: {:d}".format(cpm))
        wpm = self.calculate_wpm(self.game_time)
        print("WPM: {:d}".format(wpm))
def print_stats ( self ) : correct = len ( self . correct ) total = correct + len ( self . incorrect ) accuracy = correct / total * 100 print ( "ACC: {:.2f}%" . format ( accuracy ) ) cpm = self . calculate_cpm ( self . game_time ) print ( "CPM: {:d}" . format ( cpm ) ) wpm = self . calculate_wpm ( self . game_time ) print ( "WPM: {:d}" . format ( wpm ) )
Print ACC/CPM/WPM to console
Print ACC / CPM / WPM to console
"""Print ACC/CPM/WPM to console"""
self