Question: **please answer in Python Question 1: LAB ACTIVITY STENT 1 def chicken_rabbit(num_heads, num_legs): 2 pass # delete this line and start coding here 3 8.13.1:

**please answer in Python


Question 1:

LAB ACTIVITY STENT 1 def chicken_rabbit(num_heads, num_legs): 2 pass # delete thisline and start coding here 3 8.13.1: LAB: Gi Tu Tong Long4 5 def unittest_function_pass(): 6 7 8 9 10 11 12 def13 14 15 16 17 18 if main.py #write assertion statements here

LAB ACTIVITY STENT 1 def chicken_rabbit(num_heads, num_legs): 2 pass # delete this line and start coding here 3 8.13.1: LAB: Gi Tu Tong Long 4 5 def unittest_function_pass(): 6 7 8 9 10 11 12 def 13 14 15 16 17 18 if main.py #write assertion statements here to test the function # enumerate as many test cases you can think of to test your function # See "Additional Requirements described in the assignment" for details. pass # delete this line before you start to code something into the function unittest_function_xfail(): #write assertion statements here to test the function on any expected failing cases # See "Additional Requirements described in the assignment" for details. pass # delete this line before you start to code something into the function "__main__": int(input("Input number of heads: ")) int(input("Input number of legs: ")) _name__ num_heads num_legs n_chicken, n_rabbit = chicken_rabbit(num_heads, num_legs) #TODO: add print statements below. 19 20 21 22 23 24 25 26 unittest_function_pass() 27 28 29 30 31 32 = 0/102 Load default template... #TODO: complete the unittest_function so your function undergo a rigorous unittest created by #yourself #TODO: complete the unittest_function_xfail so your function undergo a rigorous unittest created by #yourself # Please note that unittest_function_xfail is ALWAYS expected to trip an error! Because it is testing #on expected failing cases

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!