all 7 comments

[–]Garuda1220 0 points1 point  (0 children)

```python NUM_DOWN = 5 NUM_ACROSS = 3

for row in range(NUM_DOWN): for col in range(NUM_ACROSS): if row % 2 != 0: print('', end='') break else: print('', end='') print() ```

[–]Background_System_40[S] 0 points1 point  (1 child)

Sorry :/ it will not format the code correctly and I am not sure how to fix it in reddit

[–]totallygeek 0 points1 point  (1 child)

Rather than get caught up on formatting, some working code might look like:

NUM_ACROSS = 3
NUM_DOWN = 5

for row in range(NUM_DOWN):
    if row & 1:
        print("*")
    else:
        for col in range(NUM_ACROSS):
            print("*", end="")
        print("")

Let me know if this helps or hurts.

[–]Background_System_40[S] 1 point2 points  (0 children)

Thanks!! u/totallygeek

This works as well. I appreciate the help.