From d0fa77d041a063e6ff5dcfe7b26e203eaca242bf Mon Sep 17 00:00:00 2001 From: RustyRaptor Date: Thu, 5 Dec 2019 14:00:43 -0700 Subject: [PATCH] did it in 1 line instead of 2 lol --- lab11/lab11.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lab11/lab11.py b/lab11/lab11.py index 236309f..271f424 100644 --- a/lab11/lab11.py +++ b/lab11/lab11.py @@ -28,8 +28,7 @@ def refer(code, guess): return score1 -nums = list(range(1, 7)) -sequences = [x for x in itertools.product(nums, repeat=4)] +sequences = [x for x in itertools.product(list(range(1, 7)), repeat=4)] possible = [True] * len(sequences) start = 0