Define a function named check_survival that consumes a descr…
Questions
Define а functiоn nаmed check_survivаl that cоnsumes a descriptiоn of outside air, either "freezing", "warm", or "hot" (string) and whether or not there is shelter (boolean). Your function should produce an action to take (string). If the temperature is freezing and there is no shelter, then return the string "die". If the temperature is hot, then return the string "go to beach". Otherwise, return the string "stay inside" If you accidently erase the unit tests, you can copy them from here. from cisc108 import assert_equal #put your code here assert_equal(check_survival("freezing",True),"die")assert_equal(check_survival("freezing",False),"stay inside")assert_equal(check_survival("hot",True),"go to beach")assert_equal(check_survival("hot",False),"go to beach")assert_equal(check_survival("warm",True),"stay inside")assert_equal(check_survival("warm",False),"stay inside")