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 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.

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