advent-of-code

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit ef8b1f3217cc48fbb68f97fd9e07f93755d6af1f
parent bd4ee2e64c60a1829b1b6f8b77b07ed9f278f314
Author: mpizzzle <michael.770211@gmail.com>
Date:   Fri,  8 Dec 2017 10:38:58 +0000

puzzle 4 updated

Diffstat:
Mpuzzle4.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/puzzle4.py b/puzzle4.py @@ -8,7 +8,7 @@ non_anagram_passphrases = 0 for line in file: words = line[:len(line) - 1].split(" ") - words_sorted = [''.join(sorted(word)) for word in line[:len(line) - 1].split(" ")] + words_sorted = [''.join(sorted(word)) for word in words] my_set = Set(words) my_sorted_set = Set(words_sorted) if len(my_set) == len(words):