def quizTensNumbers( words = True, trys = 3 ): func = numberByWord if words else numberByNumber return quiz( makeFunctionItems( func, range( 10, 101, 10 ) ), trys )
def quizRandom( numbersList, take, words = True, trys = 3 ): func = numberByWord if words else numberByNumber numbers = sample( numbersList, take ) return quiz( makeFunctionItems( func, numbers, shuffleThem = False ), trys)
def quizLowNumbers( words = True, trys = 3 ): func = numberByWord if words else numberByNumber return quiz( makeFunctionItems( func, range( 1, 21 ) ), trys )