// range
r = 9
bound = round(r/2)

for y in range(r):
  for x in range(r):
    if (x >= bound-y AND x <= bound+y):
      print("*", end='')
    else:
      print(" ", end='')
  print();

# range
r = 9
bound = round(r/2)

for y in range(r):
  for x in range(r):
    if (x >= bound-y AND x <= bound+y):
      print("*", end='')
    else:
      print(" ", end='')
  print();

Fix Python syntax error in triangles_printing
Fix Python syntax error in triangles_printing