Question: Please give detailed explanations beside every code. 9. Super Hero Ultimate Cagematch In order to settle inumerable arguments among the comic book aficianados of the

Please give detailed explanations beside every code. Please give detailed explanations beside every code. 9. Super Hero Ultimate Cagematch

9. Super Hero Ultimate Cagematch In order to settle inumerable arguments among the comic book aficianados of the world, the people of earth have constructed an enormous arena for all the superheros to fight in. Four superheroes accepted the challenge: Batman, Spiderman, Superman, and Aquaman. However, due to the fact that each one of them only gets messages using a different messaging app, we don't know which superheroes will actually show up. In a fight between Batman and Spiderman, Batman wins because bats are bigger than spiders. If Superman shows up, he wins automatically. If Batman and Superman both show up, due to the power of extreme plot con- trivance, they immediately fight only with each other and end up with an ex- tremely unsatisfactory tie. This removes them from the competition. Aquaman only wins if nobody else shows up. If nobody shows up, nobody wins. Write a python function which, given a list containing all the superheros who show up at the arena, tells us who would be the winner. If there is no winner for a given combination of superheroes, return "Nobody

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!