Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
258 B
6
Indexable
Never
def draw_grid(rows, columns):
    for i in range(rows):
        print("+ " + "- " * (columns-1) + "+")
        for j in range(4):
            print("| " + "  " * (columns-1) + "|")
    print("+ " + "- " * (columns-1) + "+")

# Example usage:
draw_grid(2, 4)
Leave a Comment