# Functions go here def make_statement(statement, decoration, lines): """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) print(top_bottom) else: print(top_bottom) print(middle) print(top_bottom) # Main routine goes here make_statement(statement= "Programming is fun!", decoration= "=", lines= 3) print() make_statement(statement= "Programming is still fun!", decoration= "*", lines= 2) print() make_statement(statement= "Emoji in action", decoration= "🐍", lines= 1)