Untitled

mail@pastecode.io avatar
unknown
plain_text
9 days ago
319 B
1
Indexable
Never
def draw_ant():
    ant = [
        "  \\",
        " / \\",
        "|   |",
        " \\ /",
        "  |"
    ]
    
    for line in ant:
        print(line, end=' ')

def draw_army_of_ants(num_ants):
    for i in range(num_ants):
        draw_ant()

# Draw an army of 100 ants in a single row
draw_army_of_ants(100)
Leave a Comment