Python 3 Script to Find Length of List Using For Loop Full Tutorial For Beginners

You are currently viewing Python 3 Script to Find Length of List Using For Loop Full Tutorial For Beginners

 

Welcome folks today in this blog post we will be finding the length of the list using the for loop in python. All the full source code of the application is shown below.

 

 

Get Started

 

 

In order to get started you need to create an app.py file and copy paste the following code

 

app.py

 

 

Here we are taking the list and we are using the for loop and inside it we are using the counter variable and incrementing it everytime on each iteration and thus printing out the length of the list

 

Now if you execute the above python script by typing the below command as shown below

 

python app.py

 

Leave a Reply