So i was bored and made random stuff:
rows = int(input("How many rows? "))
columns = int(input("How many columns? "))
symbol = input("What symbol? (Symbol can only be one.): ")
if len(symbol) > 1:
print("Symbol length can only be one")
for i in range(rows):
for j in range(columns):
print(symbol)
But, when i run the code and i made rows = 5
and columns = 6
it doesn't work. The result comes like this:
@
@
@
@
@
@
@
@
@
@
@
@
@
@
@
@
@
@
@
@
@
@
@
@
@
@
@
@
@
@
i want to format to:
@@@@@@
@@@@@@
@@@@@@
@@@@@@
@@@@@@
I even tried print(symbol, end="")
but the result comes out like this:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
I don't know how or why this happens and i may sound dumb, but this is my first time using nested loops.