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

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

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 Databases Questions!