Thanks, got it now :)
--
http://mail.python.org/mailman/listinfo/python-list
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
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.
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