SyntaxFix
Write A Post
Hire A Developer
Questions
This guy worked for me:
list_get = lambda l, x: l[x:x+1] and l[x] or 0
lambdas are great for one liner helper functions like this