1. Assume we want to assign to a variable “x” value “-1” if a function “g” returns negative value  and value “0” when function “g” returns value greater than 0. Please write fragment of such a code in python

2. Our goal is to write a function that removes characters from a string. Please write such function using either list comprehension or filter function.
def rem_chars(text, char):


3. Write a minimal test code for the above function including protection that the tests should be invoked only when the module containing this function is interpreted standalone and not executed when imported.