Q:

Write a Python function to create the HTML string with tags around the word(s).

0

Write a Python function to create the HTML string with tags around the word(s). 

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

def add_tags(tag, word):
	return "<%s>%s</%s>" % (tag, word, tag)
print(add_tags('i', 'Python'))
print(add_tags('b', 'Python Tutorial'))

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now