# Functions go here def make_statement(statement, decoration, lines=1): """Creates headings (3lines), subheadings (2 lines) and emphasized 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) # Functions go here def string_check(question, valid_ans_list, num_letters): """Checks that the users enter the full word or the 'n' letter/s of a word from a list of valid responses""" while True: response = input(question).lower() for item in valid_ans_list: # check if the response is the word if response == item: return item # check if it's the 'n' letter elif response == item[:num_letters]: return item print(f"Please choose an option from {valid_ans_list}") # Variables yes_no = ["yes", "no"] # Main routine goes here # Main Routine goes here make_statement("Welcome to the Shapes Program", "=", 3) print() make_statement("Programming is Still Fun!", "*", 2) print() make_statement("Emoji in Action", "🐍") like_coffee = string_check("Do you want to see the instructions? ", yes_no, 1) print(f"You chose {like_coffee}")