Nested loops in Python are easy

Nested loops in Python are easy

Bro Code

1 год назад

259,891 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Bro Code
Bro Code - 26.10.2022 19:27

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

Ответить
Manuel Santos, Jr
Manuel Santos, Jr - 24.09.2023 06:07

Hey Bro code, do you have an example of a text based game in python??

Ответить
k~lliope
k~lliope - 17.09.2023 01:22

took me about an hour but finally I understand nested loops, thank you Bro Code

Ответить
Francis Jacquart
Francis Jacquart - 16.09.2023 07:35

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!

Ответить
Yohane
Yohane - 11.09.2023 14:00

easy? i got 10/20 tho

Ответить
RaxivY
RaxivY - 11.09.2023 13:32

THANK YOU SO MUCH

Ответить
Tauhid Alam
Tauhid Alam - 10.09.2023 16:09

what does the 'end' command do?

Ответить
Omar ALbrkaui
Omar ALbrkaui - 08.08.2023 15:46

man i love you thx

Ответить
Mario
Mario - 05.08.2023 21:45

Good job 👍

Ответить
Fabiano de Oliveira
Fabiano de Oliveira - 04.08.2023 00:57

haha, valeu amigo.
Estou fazendo um curso qui no Brasil usam essa refêrencia para ensinar for in range.
Vou ver mais aulas, não compreendo inglês, mas entendo o código.

Ответить
admo
admo - 27.07.2023 11:15

Thanks bro, you explain them really well

Ответить
kqwl
kqwl - 26.07.2023 07:09

Thank you

Ответить
GoodGamer
GoodGamer - 17.07.2023 13:04

a loop inside of an another loop outer loop inner loop

Ответить
cdkw
cdkw - 13.07.2023 19:13

Comment

Ответить
cdkw
cdkw - 13.07.2023 18:20

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

Ответить
Mr.P
Mr.P - 02.07.2023 18:20

Hey bro I'm new to python, I just want to kick start my career I'm 23 now, is it ok to learn python from basics., Bcz I feel aged for programming..

Ответить
Bektur Asanbekov
Bektur Asanbekov - 01.07.2023 22:04

Thx 4 vid bro !

Ответить
Jason Hammerle
Jason Hammerle - 29.06.2023 16:27

awesome content as always, thanks Bro!👌

Ответить
Mathocity
Mathocity - 29.06.2023 15:33

Make sense

Ответить
Roma Davidoff
Roma Davidoff - 19.06.2023 20:36

Wow !! super expalination !@

Ответить
Ronaldo Siuu
Ronaldo Siuu - 17.06.2023 22:57

dont get it

Ответить
John Bainbridge
John Bainbridge - 13.06.2023 10:01

I finally see the light!😀

Ответить
Jin kazama
Jin kazama - 25.05.2023 08:12

Can u make it in one line please?

Ответить
Muhammad Abdullah Waseem
Muhammad Abdullah Waseem - 15.05.2023 16:52

I have my a levels computer science exam tomorrow and you just saved my life

Ответить
Potlapally Padma
Potlapally Padma - 28.04.2023 14:29

tini paduko

Ответить
COMPUTER SCIENCE & PYTHON PROGRAMMING EXAMPLES:
COMPUTER SCIENCE & PYTHON PROGRAMMING EXAMPLES: - 24.04.2023 02:58

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

Ответить
аничё
аничё - 23.04.2023 10:51

a = int(input("Enter the # of rows: "))
b = int(input("Enter the # of columns: "))
symbol = input("Enter a symbol to use: ")

for i in range(a):
print(symbol*b, end="\n")

Ответить
Muhammad
Muhammad - 15.03.2023 20:42

Chad 🗿 explanation

Ответить
Brandon's Excel Tutorials
Brandon's Excel Tutorials - 13.03.2023 13:51

Very well explained, thank you!

Ответить
Ugo Nkem
Ugo Nkem - 10.03.2023 06:44

Thank you so much for this

Ответить
Huni CLG
Huni CLG - 25.02.2023 22:52

I don't get why the numbers at the end are not the same, am I stupid?

for x in range(3):
for y in range(1, 10):
print(y, end=",")
print(x)

1,2,3,4,5,6,7,8,9,0
1,2,3,4,5,6,7,8,9,1
1,2,3,4,5,6,7,8,9,2

Ответить
Cartoon Station
Cartoon Station - 24.02.2023 18:10

Thank you sir for your help..

Ответить
Legs Marion
Legs Marion - 20.02.2023 02:53

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

Ответить
Saksham Khetarpal
Saksham Khetarpal - 17.02.2023 15:57

can you please explain this question

Ask the users favorite color and if it is a rainbow color print the color two times and if the color is not a rainbow color print all the even numbers before the birthdate of the user

Ответить
BodyArt
BodyArt - 09.02.2023 07:08

very helpful thanks

Ответить
harleen kaur
harleen kaur - 01.02.2023 14:26

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

Ответить
Umay Dilara Kuşcu
Umay Dilara Kuşcu - 25.01.2023 21:06

you're awesome

Ответить
Bunny Girl
Bunny Girl - 23.01.2023 21:05

Arigatō aniki!

Ответить
A K
A K - 22.01.2023 14:21

end="/t"
Will make your result like a table

Ответить
Dunith Munasinghe
Dunith Munasinghe - 08.01.2023 08:01

Thank you❤

Ответить
Hassan Raza
Hassan Raza - 15.12.2022 10:21

Very clearly explained bro! Thanks!

Ответить
Abhay Kumar Yadav
Abhay Kumar Yadav - 14.12.2022 12:17

Thanks bro

Ответить
Piotr Kopcewicz
Piotr Kopcewicz - 27.11.2022 19:18

comment

Ответить
Catcher InTheRye
Catcher InTheRye - 26.11.2022 11:24

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

Ответить
MAVA TROLLING GARAGE 💦
MAVA TROLLING GARAGE 💦 - 19.11.2022 05:06

Tq so much

Ответить
Alex Yakoveno
Alex Yakoveno - 10.11.2022 23:52

Ответить
Yoni Sapir
Yoni Sapir - 10.11.2022 22:41

Perfectly explained, thank you!

Ответить
Jerico
Jerico - 27.10.2022 10:37

Bro can you make a Kotlin tutorial?
I crash course your Java andddddd employers seeks Kotlin....

Ответить
Jasper Sumugat
Jasper Sumugat - 27.10.2022 10:35

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

Ответить