Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #6. Write a Python program to create the HTML string with tags around the word(s).
- Sample input and result :
- input: 'i' and 'Python'
- output: '<i>Python</i>'
- input: 'b', and 'Python Tutorial'
- output: '<b>Python Tutorial </b>'
- #solution
- input_tag = input()
- input_word = input()
- final = ('<%s> '%(input_tag)) + input_word + ('</%s>'%(input_tag))
- print(final)
Add Comment
Please, Sign In to add comment