fork download
  1. for row in range(6):
  2. for col in range(7):
  3. if ((row == 0 and col % 3 != 0) or
  4. (row == 1 and col % 3 == 0) or
  5. (row - col == 2) or
  6. (row + col == 8)):
  7. print("*", end="")
  8. else:
  9. print(" ", end="")
  10. print()
Success #stdin #stdout 0.02s 25400KB
stdin
Standard input is empty
stdout
for row in range(6):
    for col in range(7):
        if ((row == 0 and col % 3 != 0) or
            (row == 1 and col % 3 == 0) or
            (row - col == 2) or
            (row + col == 8)):
            print("*", end="")
        else:
            print(" ", end="")
    print()