summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--upg1_3.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/upg1_3.py b/upg1_3.py
index f4f11c4..083612f 100644
--- a/upg1_3.py
+++ b/upg1_3.py
@@ -1,3 +1,5 @@
+import random
+
def concatenate_strings(string1, string2):
return string1 + string2
@@ -6,7 +8,7 @@ def use_the_linebreak():
return "rad 1\nrad 2"
def generate_pokemon_name(prefixes, suffixes):
- return concatenate_strings(select_random(prefixes), select_random(suffixes))
+ return concatenate_strings(random.choice(prefixes), random.choice(suffixes))
def first_word(s):
return s.split(" ")[0]