summaryrefslogtreecommitdiffstats
path: root/upg1_3.py
diff options
context:
space:
mode:
Diffstat (limited to 'upg1_3.py')
-rw-r--r--upg1_3.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/upg1_3.py b/upg1_3.py
new file mode 100644
index 0000000..f4f11c4
--- /dev/null
+++ b/upg1_3.py
@@ -0,0 +1,21 @@
+def concatenate_strings(string1, string2):
+ return string1 + string2
+
+def use_the_linebreak():
+ print("rad 1\nrad 2")
+ return "rad 1\nrad 2"
+
+def generate_pokemon_name(prefixes, suffixes):
+ return concatenate_strings(select_random(prefixes), select_random(suffixes))
+
+def first_word(s):
+ return s.split(" ")[0]
+
+def join_list(vals):
+ return ":".join(vals)
+
+def remove_spaces(s):
+ return s.rstrip()
+
+def get_characters(s, pos, num_of_chars):
+ return s[pos:pos+num_of_chars]