For Loops | Python | Tutorial 22

  Рет қаралды 35,994

Giraffe Academy

Giraffe Academy

Күн бұрын

Source Code - www.giraffeacademy.com/program... This video is one in a series of videos where we'll be looking at programming in python. The course is designed for new programmers, and will introduce common programming topics using the python language.
Throughout the course we'll be looking at various topics including variables, lists, tuples, loops, conditionals, object orientation, and much more.

Пікірлер: 20
@simonriley.141
@simonriley.141 4 ай бұрын
This is the first lecture in this series that went straight over my head
@mukeshsoni5595
@mukeshsoni5595 3 жыл бұрын
Thanks sir i am grateful to have a teacher like you😊😊
@gulzhanraiymbek9925
@gulzhanraiymbek9925 Жыл бұрын
I have been watching many python tutorials but this one is the best one to learn python as a beginner! Thanks, Mike for your hard work! I wish I could know this earlier!
@joshuanwogu4069
@joshuanwogu4069 Жыл бұрын
You make learning easy. Thanks.
@HIDlarissaTERRY
@HIDlarissaTERRY 4 жыл бұрын
Beautiful training it is! Thank you so much!
@ashishsunny7963
@ashishsunny7963 Жыл бұрын
You're an awesome teacher!
@user-kx3qv4wx3b
@user-kx3qv4wx3b 2 ай бұрын
Bro love your ways of explaining it becomes more easy to understand thanks yiu again😊
@westfield90
@westfield90 5 жыл бұрын
Looping and iteration confuses the heck out of me. I never can wrap my head when you use a counter and then the iteration with assignments .... arrrg
@germainesoh9139
@germainesoh9139 2 жыл бұрын
nice video explanation for python function for loops :)
@matiassolomon7198
@matiassolomon7198 3 жыл бұрын
just perfect!
@dirksesterhenn2432
@dirksesterhenn2432 5 жыл бұрын
Had to watch this 3 times, while reading articles about this function, to somewhat wrap my head around it. So Python understands that in a list of friends like in the video, a single item within that list would be a friend? Does that only work with plurals that have an "s" at the end? How about nouns as list names that already have a "s" at the end in singular?
@alexhopestranger7386
@alexhopestranger7386 5 жыл бұрын
i thought that first too, it's not abt that. "friend" is basically a name of a "for" loop, u can call it any way u want, it will still count the number of elements in the array. hope it's helpful and makes sense
@xxvidelxx
@xxvidelxx 5 жыл бұрын
No, the s is irrelevant. It's just whatever he decided to name it. So, essentially all that is happening here is there is a variable named "friends" which could be named anything you want. Then you create a second variable (which he named "friend" but could also be anything you want) and the one he named "friend" is just holding the value of the for statement. The for statement is saying every item in the friends array, will be "friend" and then you are printing friend, so it prints each of them each time it goes through the for loop, which is each time it finds an item in the friends list.
@SiddharthYajaman
@SiddharthYajaman 4 жыл бұрын
The reason he did not name it friends is that you cannot have two variables with the same name
@scottisitt
@scottisitt 4 жыл бұрын
I thought for loops were a condensed way of writing while loops (like putting i = 1; i < 10; i++ all on the same line)... at least that's how it seemed in JS and C#. Does it not work the same way in python?
@emsheeranstudio3459
@emsheeranstudio3459 4 жыл бұрын
Friends = ["jim", "karen", "kevin"] For index in Friends: Print(index) :- jim Karen Kevin I made like this,, is this correct??????
@fricktion184
@fricktion184 3 жыл бұрын
So I went over it, and since in Python functions are case sensitive, you need to change "For" to "for" and "Print" to "print" then it works. and in general it's best to leave variable names in lowercase to make debugging it easier.
@jayeshn8880
@jayeshn8880 Жыл бұрын
🙏
@blinamama
@blinamama 4 жыл бұрын
Why Karen is one of friends, but Pam's not?
@unknownuser4645
@unknownuser4645 2 жыл бұрын
lmfao
Exponent Function | Python | Tutorial 23
6:12
Giraffe Academy
Рет қаралды 48 М.
Try / Except | Python | Tutorial 27
8:43
Giraffe Academy
Рет қаралды 65 М.
PINK STEERING STEERING CAR
00:31
Levsob
Рет қаралды 22 МЛН
Watermelon Cat?! 🙀 #cat #cute #kitten
00:56
Stocat
Рет қаралды 43 МЛН
Why You Should Always Help Others ❤️
00:40
Alan Chikin Chow
Рет қаралды 128 МЛН
Building a Guessing Game | Python | Tutorial 21
13:03
Giraffe Academy
Рет қаралды 79 М.
While Loop | Python | Tutorial 20
6:07
Giraffe Academy
Рет қаралды 48 М.
JavaScript Loops - Code This, Not That
8:36
Fireship
Рет қаралды 345 М.
For Loop in Python (So Easy to Understand) #9
9:03
Programiz
Рет қаралды 160 М.
Understanding Python loops
12:11
Python and Pandas with Reuven Lerner
Рет қаралды 1,7 М.
Reading Files | Python | Tutorial 28
9:05
Giraffe Academy
Рет қаралды 59 М.
Introduction to For Loops in Python (Python Tutorial #5)
10:22
CS Dojo
Рет қаралды 1,6 МЛН
Coding Was Hard Until I Learned THESE 5 Things!
7:40
Pooja Dutt
Рет қаралды 1 МЛН
Return Statement | Python | Tutorial 15
6:15
Giraffe Academy
Рет қаралды 253 М.