Exemplo n.º 1
0
def run():
    titanic.load_data("titanic.csv")
    num_records = len(titanic.records)
    print(f"Successfully loaded {num_records} records.")

    selected_option = display_menu()
    print(f"You have selected option: {selected_option}")
Exemplo n.º 2
0
def run():
    titanic.load_data("titanic.csv")
    num_records = len(titanic.records)
    print(f"Successfully loaded {num_records} records.")

    selected_option = display_menu.display_menu()
    print(f"You have selected option: {selected_option}")

    if selected_option == 4:
        display_passengers_per_age_group()
    else:
        print("Error! Option not recognised!")
Exemplo n.º 3
0
def run():
    titanic.load_data("titanic.csv")
    num_records = len(titanic.records)
    print(f"Successfully loaded {num_records} records.")

    selected_option = display_menu.display_menu()
    print(f"You have selected option: {selected_option}")

    if selected_option == 2:
        display_num_survivors()
    else:
        print("Error! Option not recognised!")