Write a Python function to remove falsy values from a list


Topic: Write a Python function to remove falsy values from a list

Solution

def newlist(lst):
  return list(filter(None, lst))



List all Python Programs