Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def html_list(ilist):
- olist = ""
- for i in ilist:
- olist = olist + "<li>" + i + "</li>\n"
- return "<ul> \n" + olist + "</ul>"
- print (html_list(['<greeting>', 'Hello World!', '</greeting>', 'Hi How Are You']))
- #2nd way
Add Comment
Please, Sign In to add comment