| about | help | code help+videos | done | prefs |
Python > String-1 > make_tags
prev | next | chance
| 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". Given tag and word strings, create the HTML string with tags around the word, e.g. "<i>Yay</i>".
make_tags('i', 'Yay') → '<i>Yay</i>' make_tags('i', 'Hello') → '<i>Hello</i>' make_tags('cite', 'Yay') → '<cite>Yay</cite>' ...Save, Compile, Run prev | next | chance | CodingBat > String-1 |
Progress graphs, just for fun:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
109.0
Copyright Nick Parlante 2006-11 - privacy