News for hackers. Stuff that matters.
Re:For loops help - comp.lang.c by paulbaumgart on Wednesday May 12, 2010 @07:27PM (#1342629)
Parameterized!

  def d(n): return '\n'.join(int(max((n-1)/2-i,i-n/2))*' '+(min(i,n-1-i)*2+1)*'*' for i in xrange(0,n))
Re:For loops help - comp.lang.c by BoppreH on Wednesday May 12, 2010 @08:41PM (#1342803)
I have made a version of that myself just before posting here, but I made n be width, not the height. Still an interesting solution.