# Hi, This question is from python unit Q2. Booleans and testing (a) Define the following function….

Hi, This question is from python unit

Q2. Booleans and testing (a) Define the following function. 4 marks def valid(x, y, z): #valid takes three numbers and it returns True iff #at least one of them is positive and at most one of them is negative (b) Define the following function. 6 marks def test_valid(): #test_valid returns True iff valid is correct test_valid should perform a set of well-chosen tests on valid, with at least eight tests.