Enumerate Functions

 


lst1=['kartik','aman','ramdev','raju']

for index,item in enumerate(lst1): #Bhiya enumerate function index or items dono ko iterate karta hai
if index%2!=0:
print(item)

Comments

Popular posts from this blog

React Installation with Vite and Tailwind css (Steps to Installation)

Insert Data In mongoDb

Class methods as an alternative Constructor