def hint1(p1, p2, p3, p4): ''' Return True if at least one of the four potions is poisonous, and False otherwise''' return p1 or p2 or p3 or p4 def hint2(p2): ''' Return True if p2 is not poisonous, and False otherwise''' def hint3(p1,p3): ''' Return True if at least one of p1 and p3 is poisonous, and False, otherwise ''' def hint4(p3,p4): ''' Return True if at least one of p3 and p4 is not poisonous, and False, otherwise ''' def hint5(p1, p3, p4): ''' Return True if exactly one of p1, p3, and p4 is poisonous, and False, otherwise ''' def solution(p1, p2, p3, p4): h1 = hint1(p1, p2, p3, p4) h2 = hint2(p2) h3 = hint3(p1, p3) h4 = hint4(p3, p4) h5 = hint5(p1, p3, p4) return h1 and h2 and h3 and h4 and h5