You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# nested loop = A loop within another loop (outer, inner)
# EXERCISE
rows = int(input("Enter the # of rows: "))
columns = int(input("Enter the # of columns: "))
symbol = input("Enter a symbol to use: ")
for x in range(rows):
for y in range(columns):
print(symbol, end=" ")
print()
# To print on a new line, add an empty print statement
# Nested loops can come in the following formats: (1) for loop in for loop, (2) while loop in while loop, (3) for loop in while loop, (4) while loop in for loop