# Functions go here # C_01_Make_Statement_v3.py def make_statement(statement, decoration, lines=1): """Creates headings (3 lines), subheadings (2 lines) 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) else: print(top_bottom) print(middle) print(top_bottom) # C_02_not_blank.py def not_blank(question): """Checks that a user response is not blank""" while True: response = input(question) if response != "": return response print("Sorry, this can't be blank. Please try again.\n") # Main Routine goes here print() make_statement("Pizza time", "🍕") print() # main routine starts here who = not_blank("Please enter your name: ") print(f"Hello {who}")