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