Skip to main content

how to get the length of a list in python

how to get the length of a list in python

So hai everyone reader here and In this I gonna share with you how to get the length of a list in python so in this post you will get your solution how to get the length of a list

What is a list

So a list is a data structure In python and In this we can change value and let's see how to get the length of a list in python

Lets get the length of a list

So if you want to know how to get the length of a list then you have to use len() function

What is len function? 

len() function is used to get the length if you want to get the length then you have to enter the variable under this brackets () Ok

 let's see how to get the length of a list in python



So if you wants to know how to get the length of a list in python then read this post for deep understanding otherwise see this image you get your solution

Using insert method

brackets as you can see here we have a list here.

So to use limt method that shows how many elements in the list we type praying mantises lend emphasis

on the list name which is list item that save the file and try to


It's printed that for elements which are Grich or Apple dot com.

There are four elements in the list.


Popular posts from this blog

Object oriented programming in python

Introduction My name is mohit kumar and yes you have to comment me your name so I know who you are  So in this blog we gonna learn how object oriented programming in python work and it's rules etc so without wasting any time let's start our journey object oriented programming in python video Watch video or read content                        &  Object oriented programming in python but at this point we have seen the language fundamentals of Python right we have seen variables how to pass a variable to a function we have seen function right how to define function how to call a function and then we moved towards module and now we know how to get different files now once we have talked about the language fundamentals let's move towards the concepts now one of the concept it is very important is oops which is object-oriented programming now one of the unique selling point of Python you know why pythons are famous because of this thing Python supports all di

what we can do with python programming

 What we can do with python programming - Hey guys, what's up? How's it going? This is Mohit from In this blog I wanna talk to you guys about what can you do with Python. I get this question quite a bit from people from everywhere. So let's see today's agenda Today we are covering  what can we do with python  Even though I talk about it so much, right? So, in this video we're going to get a little bit more specific about what you can do with Python, what your options are, whether you're in college right now or not, whether you're trying to find work as a freelancer, become an independent contractor, or find a full time position working with Python, I have your answers in this video so lets get started without any further ado. So, Python, as I like to put is at the perfect intersection of the most paid, one of the most growing, and one of the easiest programming languages. So when I say "most paid" I don't mean "Oh, hands do

keras save model | predict loss function

Keras save model See the keras save model video for better understanding Or Read this for keras save model Introducing   Everybody. What's up? My name is Mohit, and you're watching Coding TensorFlow-- the show where you learn how to code in TensorFlow. All right. In this post, we'll talk about saving and loading models. So why do we want to talk about this? Well, first of all, whenever you train a model of any significant complexity, the training can take a long time. Most of the models in this Getting Started series will just take a minute or so to train, where real-life models can take days or even weeks to train. So if you were to hit Control-C on your training job after it's been running for a day or so, all your model weights and values will be lost, and you would have to restart training from the beginning and be a very sad camper. But if you saved your model every so often, you can always resume training from that point, making you a happy camper. Another benef