I want to create a rectangular pattern in Python (2.7). However, the end= option in the print statement gives the error.
rows =int(input("How many rows? ")
cols = int(input("How many columns? ")
for r in range(rows):
for c in range(cols):
print("*", end="")
print()
My output should be like this when enter 5 rows and 10 columns
**********
**********
**********
**********
**********