Guest User

Untitled

a guest
Jan 18th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. def html_list(ilist):
  2. olist = ""
  3. for i in ilist:
  4. olist = olist + "<li>" + i + "</li>\n"
  5. return "<ul> \n" + olist + "</ul>"
  6.  
  7. print (html_list(['<greeting>', 'Hello World!', '</greeting>', 'Hi How Are You']))
  8.  
  9.  
  10. #2nd way
Add Comment
Please, Sign In to add comment