Question: how would you rewrite this code to display a message then get an answer from the return value ? def check(brown, jones, smith, stage, storage,gym,gun,

how would you rewrite this code to display a message then get an answer from the return value?
def check(brown, jones, smith, stage, storage,gym,gun, knife,pipe): if jones==True and stage== True and pipe==True: return "Congradulations, you solved the mystery" elif(jones==True and stage==True) or (stage==True and pipe ==True) or (jones==True and pipe==True): return"congradulations,you solved the mystery elif(jones-=True and stage==True) or (stage==True and pipe True) or (jones==True and pipe==True): Only two are correct" sorry none are correct" (check(False, True, False, True, False, False, False, False, True def check(brown, jones, smith, stage, storage,gym,gun, knife,pipe): if jones==True and stage== True and pipe==True: return "Congradulations, you solved the mystery" elif(jones==True and stage==True) or (stage==True and pipe ==True) or (jones==True and pipe==True): return"congradulations,you solved the mystery elif(jones-=True and stage==True) or (stage==True and pipe True) or (jones==True and pipe==True): Only two are correct" sorry none are correct" (check(False, True, False, True, False, False, False, False, True
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
