list methods in python part #2 | python tutorial for beginners in hindi

Veröffentlicht am: 15 Oktober 2021
auf dem Kanal: catch Error
3
1

#access list using for loop


for i in friends:
print(i)




for i in range(len(friends)):
print(friends[i])




#in this for loop we can also give gap where first is starting index and second is excluded index(end index) and third is gap index
for i in range(0,5,2):
print(friends[i])






#how we check element present or not in list


if("rahul2" in friends):
print("yes hai ")
else:
print("not present")




Marks=[18,20,25,13,15,20,25,30,85,45,95,25,85,25]
#how we check how many 20 is here
print(Marks.count(25))




#sorting in list default it's give ascending order
Marks.sort()


#for change order we use this
Marks.sort(reverse=True)
print(Marks)




#how we convert string into list
name="catch error"
print(list(name))
channel_name=name.split()
print(channel_name)




#how to copy a list another variable
friends2=friends.copy()
print(friends2)


please subscribe my channel and like the video and share the video 🙏 🙏


live server hosting 👉    • live server hosting || vs code live s...  


java extensions 👉    • important extensions for java in vs c...  


Switch case in java 👉    • modern switch case in java || new swi...  


How to add snippet for java in VS code 👉    • How to add snippet for java in VS cod...  


How to install eclipse for web page using java 👉    • How to install eclipse for web page u...  


How to add dynamic web project in eclipse 👉    • How to add dynamic web project in ecl...  


how to host website on github in hindi 👉    • how to host website on github in hind...  

function in javascript 👉    • function in javascript || functions t...  


How to create snippet in eclipse 👉    • How to create snippet in eclipse || h...  


How to host react app on firebase free 👉    • How to host react app on firebase fre...  


ROman to integer leetcode problem 13 👉    • Roman to integer python code || conve...  










github profile 👉 https://github.com/kjjindal


linkedin profile 👉   / kalpit-jindal-6190101aa  




#howto #keeplearning #dosomethingnewalways


Auf dieser Seite können Sie das Online-Video list methods in python part #2 | python tutorial for beginners in hindi mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer catch Error 15 Oktober 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 3 Mal angesehen und es wurde von 1 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!