diff --git a/python.rst b/python.rst index f9bbde7..36d7046 100644 --- a/python.rst +++ b/python.rst @@ -522,7 +522,7 @@ Instead of using many ``elif`` statements, consider using a dictionary. This al 'eight': 8, 'nine': 9, } - numbers.append(translation.get(n, " ")) + numbers.append(words_to_digits.get(n, ' ')) Strings