<reponame>Hsins/CodeWars<filename>Python/8 kyu/101 Dalmatians - Squash the Bugs, Not the Dogs/solution.py
# [8 kyu] 101 Dalmatians - Squash the Bugs, Not the Dogs
#
# Author:   Hsins
# Date:     2019/12/20


def how_many_dalmatians(n):
    dogs = ["Hardly any", "More than a handful!", "Woah that's a lot of dogs!", "101 DALMATIONS!!!"]
    if n <= 10:
        return dogs[0]
    elif n <= 50:
        return dogs[1]
    elif n == 101:
        return dogs[3]
    else:
        return dogs[2]

kyu/101 Dalmatians - Squash the Bugs, Not the Dogs/solution.py
# [8 kyu] 101 Dalmatians - Squash the Bugs, Not the Dogs
#
# Author:   Hsins
# Date:     2019/12/20


def how_many_dalmatians(n):
    dogs = ["Hardly any", "More than a handful!", "Woah that's a lot of dogs!", "101 DALMATIONS!!!"]
    if n <= 10:
        return dogs[0]
    elif n <= 50:
        return dogs[1]
    elif n == 101:
        return dogs[3]
    else:
        return dogs[2]
# [8 kyu] 101 Dalmatians - Squash the Bugs, Not the Dogs # # Author:   Hsins # Date:     2019/12/20