Advertisement
simeonshopov

HTML

Feb 14th, 2020
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. title = input()
  2. article = input()
  3.  
  4. result = f'<h1>\n    {title}\n</h1>\n<article>\n    {article}\n</article>'
  5.  
  6. while True:
  7.     line = input()
  8.     if line == 'end of comments':
  9.         break
  10.     result += f'\n<div>\n    {line}\n</div>'
  11.  
  12. print(result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement