Iterating lists in Python for Dummies

list = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri']
for i in range( 0, len(list)) :
print(list[i])
Mon
Tue
Wed
Thu
Fri

--

--

--

Lead, Product Development, Embedded System Specialist/Mad scientist

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Update salesforce objects and listen to the salesforce objects via WSO2 Micro Integrator

Tax Attorney

863. All Nodes Distance K in Binary Tree

SSH : What not to do?

What to expect from Launch School’s RB109 Written Assessment

this is testingtitle https://t.co/eWQBli2oxh

My GSoC 2021 with OONI

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Iqram Ali

Iqram Ali

Lead, Product Development, Embedded System Specialist/Mad scientist

More from Medium

Common Operations with Numbers, Strings and Lists in Python

OOP in Python

How to run python file in MatLab via script?

Switch statement in Python