Re: Hollow square program

2012-12-12 Thread Steven D'Aprano
On Wed, 12 Dec 2012 23:47:20 +, Mark Lawrence wrote: > THE ONLY GOOD GOOGLE USER IS A DEAD GOOGLE USER > > I say, that's a bit much. That crosses a line from a friendly contempt for ignorant Gmail users to something rather nasty. Preemptive apology or not, I don't think that is acceptable

Re: Hollow square program

2012-12-12 Thread Mark Lawrence
On 12/12/2012 17:52, siimnur...@gmail.com wrote: Thanks, got it now :) Please quote something in context for future readers. Roughly translated THE ONLY GOOD GOOGLE USER IS A DEAD GOOGLE USER -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Hollow square program

2012-12-12 Thread siimnurges
Thanks, got it now :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Hollow square program

2012-12-12 Thread Peter Otten
siimnur...@gmail.com wrote: > Well, I did some modifications and got a hollow square, but the columns > aren't perfectly aligned with the rows (at least if input is 5. Thanks for > the help :) > > rows = int(input()) > s1="* "*rows > s2="*"+(rows-2)*" "+"*" > print(s1) > for s in range(rows-2): >

Re: Hollow square program

2012-12-12 Thread Ian Kelly
On Wed, Dec 12, 2012 at 10:22 AM, wrote: > Well, I did some modifications and got a hollow square, but the columns > aren't perfectly aligned with the rows (at least if input is 5. Thanks for > the help :) > > rows = int(input()) > s1="* "*rows > s2="*"+(rows-2)*" "+"*" > print(s1) > for s in r

Re: Hollow square program

2012-12-12 Thread siimnurges
Well, I did some modifications, but the columns aren't perfectly aligned with the rows. rows = int(input()) s1="* "*rows s2="*"+(rows-2)*" "+"*" print(s1) for s in range(rows-2): print(s2) print(s1) -- http://mail.python.org/mailman/listinfo/python-list

Re: Hollow square program

2012-12-12 Thread siimnurges
Well, I did some modifications and got a hollow square, but the columns aren't perfectly aligned with the rows (at least if input is 5. Thanks for the help :) rows = int(input()) s1="* "*rows s2="*"+(rows-2)*" "+"*" print(s1) for s in range(rows-2): print(s2) print(s1) -- http://mail.python.

Re: Hollow square program

2012-12-12 Thread Mitya Sirenef
On 12/12/2012 11:48 AM, siimnur...@gmail.com wrote: Hey, I need to write a program that prints out a square, which is empty on the inside. So far, I've made a program that outputs a square, which is full on the inside. > P.S. Between every asterisk there needs to be a space(" ") > Here's my cod

Re: Hollow square program

2012-12-12 Thread Chris Angelico
On Thu, Dec 13, 2012 at 3:48 AM, wrote: > Hey, I need to write a program that prints out a square, which is empty on > the inside. So far, I've made a program that outputs a square, which is full > on the inside. > P.S. Between every asterisk there needs to be a space(" ") > Here's my code: > >

Hollow square program

2012-12-12 Thread siimnurges
Hey, I need to write a program that prints out a square, which is empty on the inside. So far, I've made a program that outputs a square, which is full on the inside. P.S. Between every asterisk there needs to be a space(" ") Here's my code: print("Rows: ") rows = int(input()) for i in range(row