For | Definite Loops in Python

Pubblicato il: 26 giugno 2021
sul canale di: 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!


In questa pagina del sito puoi guardare il video online For | Definite Loops in Python della durata di ore minuti seconda in buona qualità , che l'utente ha caricato SnekCato 26 giugno 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 482 volte e gli è piaciuto 38 spettatori. Buona visione!