For Loops | Python | Tutorial 22

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

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!
@user-kx3qv4wx3b
@user-kx3qv4wx3b 2 ай бұрын
Bro love your ways of explaining it becomes more easy to understand thanks yiu again😊
@HIDlarissaTERRY
@HIDlarissaTERRY 4 жыл бұрын
Beautiful training it is! Thank you so much!
@joshuanwogu4069
@joshuanwogu4069 Жыл бұрын
You make learning easy. Thanks.
@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
@ashishsunny7963
@ashishsunny7963 Жыл бұрын
You're an awesome teacher!
@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
@matiassolomon7198
@matiassolomon7198 3 жыл бұрын
just perfect!
@germainesoh9139
@germainesoh9139 2 жыл бұрын
nice video explanation for python function for loops :)
@jayeshn8880
@jayeshn8880 Жыл бұрын
🙏
@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.
@blinamama
@blinamama 4 жыл бұрын
Why Karen is one of friends, but Pam's not?
@unknownuser4645
@unknownuser4645 3 жыл бұрын
lmfao
Exponent Function | Python | Tutorial 23
6:12
Giraffe Academy
Рет қаралды 48 М.
Try / Except | Python | Tutorial 27
8:43
Giraffe Academy
Рет қаралды 65 М.
Пробую самое сладкое вещество во Вселенной
00:41
TRY NOT TO LAUGH 😂
00:56
Feinxy
Рет қаралды 18 МЛН
UFC Vegas 93 : Алмабаев VS Джонсон
02:01
Setanta Sports UFC
Рет қаралды 210 М.
Smart Sigma Kid #funny #sigma #comedy
00:19
CRAZY GREAPA
Рет қаралды 16 МЛН
Building a Guessing Game | Python | Tutorial 21
13:03
Giraffe Academy
Рет қаралды 79 М.
While Loop | Python | Tutorial 20
6:07
Giraffe Academy
Рет қаралды 48 М.
Understanding Python loops
12:11
Python and Pandas with Reuven Lerner
Рет қаралды 1,7 М.
6 Tips to write BETTER For Loops in Python
9:19
Patrick Loeber
Рет қаралды 246 М.
25 nooby Python habits you need to ditch
9:12
mCoding
Рет қаралды 1,7 МЛН
Unlocking your CPU cores in Python (multiprocessing)
12:16
mCoding
Рет қаралды 293 М.
Working With Strings | Python | Tutorial 6
11:35
Giraffe Academy
Рет қаралды 50 М.
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Рет қаралды 1 МЛН
JavaScript Loops - Code This, Not That
8:36
Fireship
Рет қаралды 345 М.
Coding Was Hard Until I Learned THESE 5 Things!
7:40
Pooja Dutt
Рет қаралды 1 МЛН
Пробую самое сладкое вещество во Вселенной
00:41