SyntaxFix
Write A Post
Hire A Developer
Questions
Finding index of item x in list L:
idx = L.index(x) if (x in L) else -1