From 953c372998e78ea32fd47504a400ca7cf6618796 Mon Sep 17 00:00:00 2001 From: Thibaud Date: Mon, 16 Dec 2019 22:05:07 +0100 Subject: [PATCH] wip wip wip --- day5/day5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):