Answers for "check where bool in a list python"

1

check where bool in a list python

# Function that returns idx of true in 
return_idx = lambda bool_lis: list(filter(lambda i: bool_lis[i], range(len(bool_lis))))
Posted by: Guest on May-15-2021

Python Answers by Framework

Browse Popular Code Answers by Language