Skip to main content

Posts

Showing posts from April, 2021

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 Conclusion 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 th

sentinel value python|easiest explanation

 Sentinel value python sentinel value in python so hai everyone welcome you all in my blog so sentinel value in python is basically a loop break value And you will learn in this blog sentinel value in python Use of sentinel value (python) Example of sentinel value (python) Example of sentinel value (python) See the video for better understanding of sentinel value (python) Conclusion sentinel value is easy to use and you learn all about this in this previous post This video is going to explain how to use sentinel values in while loops. A sentinel value is a value that will break the while loop, so you'll leave it. It's a value that will change to indicate when the loop should end. So I have a very simple program. I have variables count, which is going to count how many test scores that we enter. Total, which will total up all of the test scores. And then test score, which will be my input for each time. This is going to accept th

Python list to string

 Python list to string So hai everybody so today  I gonna share with you how you can convert the list to string  After reading this you are able to convert python list to string very easily so let get Started  So first of all we wanna create a list so firstly we create a list and then we convert the list into string So here we create a list And then we check this list and then we gonna convert this into string So check this list by using the type() function And then here comes the trick  First we create a variable B and then we will and we have to create an unnamed string and then we use .join() methode And insert the variable A and check the variable b type and then you successful🏆💪