Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

**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:

imageimageimageimage

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Calculus

Authors: Ron Larson, Bruce H. Edwards

10th Edition

1285057090, 978-1285057095

More Books

Students also viewed these Programming questions