summaryrefslogtreecommitdiffstats
path: root/upg1_3.py
blob: 083612fa538f322529c1c500ce03f0467b41e59d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import random

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(random.choice(prefixes), random.choice(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]