I have a string in python and i desire to find the index of the first occurrence of the letter l in it. Here is the code am using

mystring="abcdloplu"
##how do i get the index of the first occurrence of l in the string
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.