forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice SaturdayMorning > makeHTML
prev  |  next  |  chance

makeHTML(tag, word): web pages use "HTML markup" to style their text. For example, "<i>Test</i>" causes the string "Test" to be displayed in italics. In this example, the "i" tag surrounds the string "Test" starting with <i> and ending with </i>. Given a string tag and a string word, return the word with HTML tags around it, for example "<i>Test</i>".

makeHTML('i', 'Test') → '<i>Test</i>'
makeHTML('b', 'Important!') → '<b>Important!</b>'
makeHTML('code', 'variable') → '<code>variable</code>'

...Save, Compile, Run (ctrl-enter)

def makeHTML(tag, word):

Editor font size %:
Shorter output

Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Post-solution available

Copyright Nick Parlante 2017 - privacy