def gen_ordered_list(list_items):
    """Generates a numbered list.

    Args:
     list_items (list of strings): The items to be listed.

    Returns:
      The markdown formatted list.

    """
    md_str = ''
    for i, text in enumerate(list_items):
        md_str += '{}. {}\n'.format(i + 1, text)
    return md_str
