so i just started learning python and found this 2 lines of code for finding multiple indexes of letters in strings/lists. I'd love if some of you guys can simplify the 2nd line for me,
text= 'Allowed Hello Hollow'
print [n for n in xrange(len(text)) if text.find('ll', n) == n]
I don't know if it's just a shortcut style writing or something, but I'd like it simplified, thanks :D