For | Definite Loops in Python

Published: 26 June 2021
on channel: SnekCato
482
38

Do you know the difference between while and for loops? If not, don't worry, I got you.

Do you like Horror games? Follow me on Twitch! :   / snekcato  
Join our community of tech catos :   / discord  

Code used in this video

friends=["JoJo","BoJack","Shrek"]
for name in friends:
print ("Hello",name)

farts=[1,2,3,1,2,3,100]
sum=0
length=0
for number in farts:
sum+=number
length+=1
print ("Average farts per week:", str(sum/length))


#vtuber #python #programming #mexicanvtuber

Timestamps
0:00 Intro
0:12 For loops definition
1:20 Task using for loops
1:38 Task solution
3:43 Diference between for and while loops
4.07 Thanks for watching!


On this page of the site you can watch the video online For | Definite Loops in Python with a duration of hours minute second in good quality, which was uploaded by the user SnekCato 26 June 2021, share the link with friends and acquaintances, this video has already been watched 482 times on youtube and it was liked by 38 viewers. Enjoy your viewing!