The web is built with HTML strings like iYay/i which draws Yay as italic text. In this example, the i tag makes i and /i which surround the word Yay. Given tag and word strings, create the HTML string with tags around the word, e.g. iYay/i.

make_tags(i, Yay) iYay/i

make_tags(i, Hello) iHello/i

make_tags(cite, Yay) citeYay/cite

Go…Save, Compile, Run (ctrl-enter)def make_tags(tag, word):

Forget It!– delete my code for this problem

Random user progress graphfor this problem

Python HelpPython Example CodePython StringsPython ListsPython If BooleanCode Badges