python – How to Refactor multiple elif statements, i dont know how to approach it im a beginner


(The “anykey” has not been used)

def load1():
    print(
        "Please choose your regionn 1 for Region 1n 2 for CAR n 3 for Region IIn 4 for Region IIIn 5 for Region IVn 6 for NCRn 7 for Region Vn 8 for Region VIn 9 for Region VIIn 10 for SOCCSKARGENn 11 for Region VIIIn 12 for CARAGAn 13 for Region IXn 14 for Region Xn 15 for Region XI ")
    option = int(input("Your option: "))
    # Acts like switch
    if option == "1":
        print("Region 1n")
        csv_file = csv.reader(open('file/Region I.csv', 'r'))
        for row in csv_file:
            print(row)
        anykey = input("Press any key to return from main menu")
        mainMenu()

    elif option == "2":
        print("CARn")
        csv_file = csv.reader(open('file/CAR.csv', 'r'))
        for row in csv_file:
            print(row)
        anykey = input("Press any key to return from main menu")
        mainMenu()

    elif option == "3":
        print("Region 2n")
        csv_file = csv.reader(open('file/Region II.csv', 'r'))
        for row in csv_file:
            print(row)
        anykey = input("Press any key to return from main menu")
        mainMenu()

    elif option == 4:

        print("Region 3n")
        csv_file = csv.reader(open('file/Region III.csv', 'r'))
        for row in csv_file:
            print(row)
        anykey = input("Press any key to return from main menu")
        mainMenu()

    elif option == 5:
        print("Region 4n")
        csv_file = csv.reader(open('file/Region IV.csv', 'r'))
        for row in csv_file:
            print(row)
        anykey = input("Press any key to return from main menu")
        mainMenu()

    elif option == 6:
        print("NCR 4n")
        csv_file = csv.reader(open('file/NCR.csv', 'r'))
        for row in csv_file:
            print(row)
            print()
        anykey = input("Press any key to return from main menu")
        mainMenu()

    elif option == 7:
        print("Region 5n")
        csv_file = csv.reader(open('file/Region V.csv', 'r'))
        for row in csv_file:
            print(row)
        anykey = input("Press any key to return from main menu")
        mainMenu()

    elif option == 8:
        print("Region 6n")
        csv_file = csv.reader(open('file/Region VI.csv', 'r'))
        for row in csv_file:
            print(row)
        anykey = input("Press any key to return from main menu")
        mainMenu()

    elif option == 9:
        print("Region 7n")
        csv_file = csv.reader(open('file/Region VII.csv', 'r'))
        for row in csv_file:
            print(row)
        anykey = input("Press any key to return from main menu")
        mainMenu()

    elif option == 10:
        print("SOCCSKARGENn")
        csv_file = csv.reader(open('file/SOCCSKARGEN.csv', 'r'))
        for row in csv_file:
            print(row)
        anykey = input("Press any key to return from main menu")
        mainMenu()

    elif option == 11:
        print("Region 8n")
        csv_file = csv.reader(open('file/Region VIII.csv', 'r'))
        for row in csv_file:
            print(row)
        anykey = input("Press any key to return from main menu")
        mainMenu()

    elif option == 12:
        print("CARAGAn")
        csv_file = csv.reader(open('file/CARAGA.csv', 'r'))
        for row in csv_file:
            print(row)
        anykey = input("Press any key to return from main menu")
        mainMenu()

    elif option == 13:
        print("Region 9n")
        csv_file = csv.reader(open('file/Region IX.csv', 'r'))
        for row in csv_file:
            print(row)
        anykey = input("Press any key to return from main menu")
        mainMenu()

    elif option == 14:
        print("Region 10n")
        csv_file = csv.reader(open('file/Region X.csv', 'r'))
        for row in csv_file:
            print(row)
        anykey = input("Press any key to return from main menu")
        mainMenu()

    elif option == 15:
        print("Region 11n")
        csv_file = csv.reader(open('file/Region XI.csv', 'r'))
        for row in csv_file:
            print(row)
        anykey = input("Press any key to return from main menu")
        mainMenu()