Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- header = input()
- h1_color = input()
- p_color = input()
- h1_text = input()
- p_text = input()
- def dec(func):
- def wrapper(header_f, h1_color_f, p_color_f, h1_text_f, p_text_f):
- print("<html>\n<head>")
- func(header_f, h1_color_f, p_color_f, h1_text_f, p_text_f)
- print("</body>\n</html>")
- return wrapper(header, h1_color, p_color, h1_text, p_text)
- @dec
- def f(header_f, h1_color_f, p_color_f, h1_text_f, p_text_f):
- print("<title>{0}</title>\n"
- "<style>h1{{color:{1}}}p{{color:{2}}}</style>\n"
- "</head>\n"
- "<body>\n"
- "<h1>{3}</h1>\n"
- "<p>{4}</p>".format(header_f, h1_color_f, p_color_f, h1_text_f, p_text_f))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement