Nested loops in Python are easy ➿

preview_player
Показать описание
#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()
Рекомендации по теме
Комментарии
Автор

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

BroCodez
Автор

I don't know why but my brain really, REALLY wants to overthink both for loops and nested loops. They're really simple concepts but something always gets wonky in the monkey wires. This was a great video, really needed something to explain it in the most babymode 5 year old way, thank you

Lex_Marion
Автор

Bro, you saved me ass, I was gonna fail for sure but you absolute ultimate gigachad saved my. Thank you King. You dropped this 👑

cdkw
Автор

Thank you much
This is the first time I have understood nested loops, pattern after watching so many videos
God bless
Please keep making more videos on programming

harleenkaur
Автор

THAT IS SO WELL THOUGHT OUT! BRILLIANT! AND I AM STARTING TO UNDERTAND HOW PROGRAMMERS THINK AND DEVELOP THEIR PROGRAMS! THANK YOU SO MUCH FOR ALL YOUR TUTORIALS!

francisjacquart
Автор

This is very clever and give me a better understanding in nested loop

jaspersumugat
Автор

Thanks bro, you explain them really well

admo
Автор

Such a beautiful explanation Sir. Thanks a lot for sharing making it easy to understand for beginners.

RameshKumar-ngnf
Автор

Thank so very much for your help on leaning Python .. Great, to the point Teacher.

Compuscience-Python-Prog-Exps
Автор

Thank you bro for all your videos. I Iearnt java and javascript extensively through your videos.

ch_dave
Автор

You entirely clear my concept ... thanks alot bro 😭😭🤌

babludas
Автор

awesome content as always, thanks Bro!👌

jasonhammerle
Автор

clear explanation, helped and saved my brain from overthinking

jeiddoromal
Автор

Bro, may I say you have such a soothing and beautiful voice? 🤗

thedeparted_one
Автор

Dude i fking love u, ur content is outstanding

CarlosLopez-mxhq
Автор

Now I understand nexted loop better👏✔️

calculuslifer
Автор

This guy is one of my favorite people on Earth. I don't even know who you are but you are 100% a king

Narree-
Автор

thanks for your explanation it's really helpful ☺

anandh
Автор

excellent vid. really well explained. thanks

MrSimonmartinlee
Автор

best explanation of nested loops out there

mariakoszalin