Guest User

Untitled

a guest
Dec 12th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #6. Write a Python program to create the HTML string with tags around the word(s).
  2. Sample input and result :
  3. input: 'i' and 'Python'
  4. output: '<i>Python</i>'
  5. input: 'b', and 'Python Tutorial'
  6. output: '<b>Python Tutorial </b>'
  7.  
  8. #solution
  9.  
  10. input_tag = input()
  11. input_word = input()
  12.  
  13. final = ('<%s> '%(input_tag)) + input_word + ('</%s>'%(input_tag))
  14. print(final)
Add Comment
Please, Sign In to add comment