Exemple #1
0
        # runs function to remove person
        remove_person()
        clear_screen()
        print('Removed!')

    elif selection == '3':

        # runs function to sort people
        my_structure = sort_people(my_structure)
        clear_screen()
        print('Sorted!!')

    elif selection == '4':

        # updates save file
        Person.save_to_file([chair.person for chair in my_structure.chair_list()])
        clear_screen()
        print('Saved!!')

    elif selection == '5':

        # runs function to create new person and add to structure
        new_person = build_new_person()
        new_chair = Chair(new_person)
        my_structure = my_structure.add_person(new_person)
        clear_screen()
        print('Added!!')

    elif selection == '6':

        # prints the binary tree