More tweaking
[cipher-training.git] / find_best_caesar_break_parameters.py
index 7a550aaacc3cfade2fe06b9b6f6b81675fa8f6b6..7a8ddc9dc0a4dd3340a84c3fb021d44131d1ab87 100644 (file)
@@ -72,7 +72,7 @@ def show_results():
         writer = csv.DictWriter(f, ['name'] + message_lengths, 
             quoting=csv.QUOTE_NONNUMERIC)
         writer.writeheader()
-        for scoring in sorted(scores.keys()):
+        for scoring in sorted(scores):
             scores[scoring]['name'] = scoring
             writer.writerow(scores[scoring])