I agree,your code works,but you used if statement, I like'd to learn how to use switch/case statement
For example ( I took it from: www.pydanny.com/why-doesnt-python-have-switch-case.html)
For example ( I took it from: www.pydanny.com/why-doesnt-python-have-switch-case.html)
def numbers_to_strings(argument): switcher = { 0: "zero", 1: "one", 2: "two", } return switcher.get(argument, "nothing")