def ul(cls, lst):
    """create html ul from list with class cls"""
    result = ['<ul class="%s">' % (cls)]
    result += ['%s%s' % (' '*4, l) for l in li(lst)]
    result += ['</ul>']
    return result
create html ul from list with class cls
recipes/Python/502222_Creating_javclass/recipe-502222.py