Python Tutorial for Absolute Beginners - #3 Looping through Lists (fast pace)

Published: 11 February 2021
on channel: Raza Zaidi
21,037
285

Learn programming in Python 100 seconds at a time in this video for beginners. This is video number 3: Looping through Lists

I know im going fast in this video, please use timestamps below to navigate the video.

Timestamps:
00:00 - Start
00:06 - Printing without loop
00:16 - printing with a loop
00:21 - Breaking down looping
00:43 - importance of indenting
00:50 - unnecessary indenting
00:55 - Final example

—————————————————————
LOOPING THROUGH LISTS
—————————————————————

List = [‘mouse’ , ‘dog’]

For variable in list:
Print(variable)
After ‘for’ the variable is created immediately
You can choose whatever name you want for the variable
The variable is used to store an item from the list in the variable
Then you can use that variable however you want. In this case print
Don’t forget the colon ‘:’ and indention in the next line after the colon
Do not indent the part, you don’t want to include in the for loop

————————————————————————



🦁 Who are you?
My name is Raza. I am a manager within IT for a year, but I’ve been an accountant for the majority of my career.
I’m in love with #Python :)

You can find me here:
📷 Instagram:   / razacodes  
📈 Twitter:   / razacodes  
—————————————————————————————


Goals for 2021Training
Python hours: 25/1000
Python/Django Projects: 1/30
Subscribers: 1200/10,000
—————————————————————————————-
#100SecondsOfCode
#pythonforbeginners
#programming