예제 #1
0
print(intro_str)

var = 0
while var != 5:
    print(menu_str)

    def one():
        printCountries()

    def two():
        addCountry()

    def three():
        byCountry()

    def four():
        byPopulation()

    def five():
        print("Thank you, goodbye")
        raise SystemExit

    switcher = {1: one, 2: two, 3: three, 4: four, 5: five}

    def user_choice(arg1):
        func = switcher.get(arg1)
        return func()

    choice = Validator.inputNumber("Selection: ")

    user_choice(choice)