Example #1
0
                                           input("Enter Right Data :"),
                                           input("Enter Top Data :"),
                                           input("Enter Left Data :"))
        elif ch == "2":
            myPyramid.graph_view()
        elif ch == "3":
            print(myPyramid.vertical_list())
        elif ch == "4":
            print(myPyramid.vertical_rev_list())
        elif ch == "5":
            print(myPyramid.horizontal_list())
        elif ch == "6":
            print(myPyramid.horizontal_rev_list())
        elif ch == "7":
            print(myPyramid.pop_pyramid_layer())
        elif ch == "8":
            print(myPyramid.dequeue_pyramid())
        elif ch == "9":
            print(myPyramid.root_to_right_list())
        elif ch == "10":
            print(myPyramid.root_to_left_list())
        elif ch == "11":
            print(myPyramid.root_to_up_list())
        elif ch == "12":
            print(myPyramid.root_to_down_list())

        else:
            print("Plese Enter Correct number")

        input("\n Press any key...")
        os.system("clear")  #remove if dont have linux