diff --git a/day5/day5.py b/day5/day5.py index 4b29bca..a11854e 100644 --- a/day5/day5.py +++ b/day5/day5.py @@ -8,7 +8,7 @@ logging.basicConfig(format="%(levelname)s:%(message)s", level=logging.DEBUG) def get_nth_digit(n, number): "Returns the nth digit of the input number" - return number // n ** 10 % 10 + return number // 10 ** n % 10 class Operation(Enum):