import pandas # Functions go here def make_statement(statement, decoration): """Emphasises headings by adding decoration at the start and end""" print(f"{decoration * 3} {statement} {decoration * 3}") # Menu setup: # Pizzas pizza_data = { "Item": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "Pizza": ["Cheese", "Ham & Cheese", "Pepperoni", "Hawaiian", "Meat Lovers", "BBQ Chicken", "Vegetarian", "Seafood", "Supreme", "Butter Chicken"], "Price": [5.99, 6.99, 6.99, 6.99, 8.99, 8.99, 11.99, 12.99, 12.99, 13.99] } # Base type type_of_base_data = { "Item": [1, 2, 3, 4, 5], "Base Type": ["Regular Crust", "Thin Crust", "Stuffed Crust", "Extra Cheese", "Garlic Crust"], "Price": [0.00, 1.99, 1.99, 1.99, 1.99] } # Base size size_of_base_data = { "Item": [1, 2, 3], "Size": ["Small", "Medium", "Large"], "Price": [0.00, 2.99, 5.99] } # Additional toppings extra_toppings = { "Item": [1, 2, 3, 4, 5, 6, 7], "Extra Toppings": ["No Extra Toppings", "Ham", "Pepperoni", "Pineapple", "Olives", "Chicken", "Bacon"], "Price": [0.00, 1.99, 1.99, 1.99, 1.99, 2.99, 3.99] } # Convert each dictionary into a DataFrame pizza_df = pandas.DataFrame(pizza_data) base_df = pandas.DataFrame(type_of_base_data) size_df = pandas.DataFrame(size_of_base_data) extras_df = pandas.DataFrame(extra_toppings) make_statement("Menu", "-") print() # Display all menus print("Pizza Menu:") print(pizza_df.to_string(index=False)) print() print("Base Types:") print(base_df.to_string(index=False)) print() print("Base Sizes:") print(size_df.to_string(index=False)) print() print("Extra Toppings:") print(extras_df.to_string(index=False))