typing_test/typing_test.py
def calculate_wpm(self, time_played):
        """Calculate WPM given time_played in seconds"""
        cpm = self.calculate_cpm(time_played)
        wpm = cpm // CHARS_PER_WORD
        return wpm
Calculate WPM given time_played in seconds
Calculate WPM given time_played in seconds
Calculate WPM given time_played in seconds
def calculate_wpm(self, time_played):
        cpm = self.calculate_cpm(time_played)
        wpm = cpm // CHARS_PER_WORD
        return wpm
def calculate_wpm ( self , time_played ) : cpm = self . calculate_cpm ( time_played ) wpm = cpm // CHARS_PER_WORD return wpm
Calculate WPM given time_played in seconds
Calculate WPM given time_played in seconds
"""Calculate WPM given time_played in seconds"""
self
time_played