Nested loops in Python are easy

Channel Avatar
Comment
X
Share
Nested loops in Python are easy
Nested loops in Python are easy
#Python #course #tutorial

# nested loop A loop within another loop (outer, inner)
# outer loop:
# inner loop:

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()

Take the opportunity to connect and share this video with your friends and family if you find it useful.

Keywords: python tutorial for beginners, python course, python tutorial

Read Also

Leave a Reply

Your email address will not be published. Required fields are marked *