import pandas # Functions go here def make_statement(statement, decoration, lines=1): """Creates headings (3 lines), subheadings (2lines) and emphasised text / mini-headings (1 line). Only use emoji for single line statements""" middle = f"{decoration * 3} {statement} {decoration * 3}" top_bottom = decoration * len(middle) if lines == 1: print(middle) elif lines == 2: print(middle) print(top_bottom) else: print(top_bottom) print(middle) print(top_bottom) # pizza lists pizza_items = ["Cheese", "Peperoni", "Ham & Cheese", "BBQ", "Veggie", "Meat-lovers", "Spicy chicken", "Pesto", "Hawaiian", "Burger", "----"] special_pizza = ["Desert Pizza", "Butter Chicken"] pizza_cost = [7.50, 7.50, 7.50, 7.50, 7.50, 7.50, 7.50, 7.50, 7.50, 7.50, "----", 5.50, 7.80] # pizza sizes pizza_size = ["Small", "Medium", "Large"] pizza_size_cost = [2.50, 3.50, 4.50] pizza_dict = { 'Pizza': pizza_items + special_pizza, 'Price': pizza_cost, } # create dataframe pizza_frame = pandas.DataFrame(pizza_dict) # Main routine goes here make_statement(statement="Pizza Palace", decoration="🍕") print(pizza_frame)