DEV Community

loading...

Discussion on: Daily Challenge #172 - Find All in an Array

Collapse
citizen428 profile image
Michael Kohl

I made an alternative Python version with a list comprehension:

def find_all(list, value):
    return [ i for i, n in enumerate(list) if n == value ]