Boxes of O's

Glazner yoavglazner at gmail.com
Sun Mar 2 22:30:03 CET 2014


On Sunday, March 2, 2014 4:43:48 PM UTC+2, geni... at gmail.com wrote:
> I agree with you and really appreciate your experience. But what I was looking for is clues. Thank you anyway

#not tested
for i in range(n):
  for j in range(n*2):
    if i in (0, n - 1) or j in (0, n*2 - 1):
      print('o', end='')
    else:
      print(' ', end='')
   print()



More information about the Python-list mailing list