make_tags¶
The web is built with HTML strings like “<i>Yay</i>” which draws Yay as italic text. In this example, the “i” tag makes <i> and </i> which surround the word “Yay”. Ask the user for a tag string, then ask the user for a word string. Print out the HTML string with tags around the word, e.g. “<i>Yay</i>”.
This exercise was taken from codingbat.com and has been adapted for the Python language. There are many great programming exercises there, but the majority are created for Java.