def boxed_text(text): width = len(text) + 4 border = '*' * width boxed = f"{border}\n* {text} *\n{border}" return boxed print(boxed_text("Hello, World!"))