From 20908f05a2a22e64949b417a1b89eea3bf93e5fa Mon Sep 17 00:00:00 2001 From: RichieStacker Date: Sat, 14 Dec 2013 17:53:06 +0000 Subject: [PATCH] Changed the evaulation of insult_column to the length of insult_list instead of a hard number --- construct_insult.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/construct_insult.py b/construct_insult.py index 68ece6f..87e1fc2 100644 --- a/construct_insult.py +++ b/construct_insult.py @@ -47,7 +47,7 @@ def construct_insult(): built_insult = built_insult + insult_list[insult_column][insult_select] # If the current insult column is before the last one, append a space, else append an exclamation mark. - if insult_column < 2: + if insult_column < len(insult_list) - 1: built_insult = built_insult + " " else: built_insult = built_insult + "!"