What is the code for sharks lagoon rivalries part 2?

```

def is_shark_dangerous(species):

"""

Returns True if the given shark species is considered dangerous to humans.

Args:

species: The name of the shark species.

Returns:

True if the shark species is dangerous to humans, False otherwise.

"""

dangerous_shark_species = ["Great White", "Tiger", "Bull", "Hammerhead", "Oceanic Whitetip"]

return species in dangerous_shark_species

def get_shark_rival(species):

"""

Returns the rival shark species of the given shark species.

Args:

species: The name of the shark species.

Returns:

The rival shark species of the given shark species.

"""

shark_rivalries = {

"Great White": "Tiger",

"Tiger": "Great White",

"Bull": "Hammerhead",

"Hammerhead": "Bull",

"Oceanic Whitetip": "Great White",

}

return shark_rivalries[species]

def get_rivalry_info(species1, species2):

"""

Returns the rivalry information between the given two shark species.

Args:

species1: The name of the first shark species.

species2: The name of the second shark species.

Returns:

The rivalry information between the given two shark species.

"""

rivalry_info = [

{

"species1": "Great White",

"species2": "Tiger",

"rivalry": "The Great White and Tiger sharks are rivals for territory and prey. The Great White shark is the larger and more powerful of the two, but the Tiger shark is more aggressive and opportunistic. Both sharks are known to attack humans.",

},

{

"species1": "Bull",

"species2": "Hammerhead",

"rivalry": "The Bull and Hammerhead sharks are rivals for territory and prey. The Bull shark is the more aggressive and territorial of the two, while the Hammerhead shark is more social and cooperative. Both sharks are known to attack humans.",

},

{

"species1": "Oceanic Whitetip",

"species2": "Great White",

"rivalry": "The Oceanic Whitetip and Great White sharks are rivals for territory and prey. The Oceanic Whitetip shark is the more aggressive and territorial of the two, while the Great White shark is more powerful and opportunistic. Both sharks are known to attack humans.",

},

]

for info in rivalry_info:

if species1 == info["species1"] and species2 == info["species2"]:

return info

return None

def main():

"""

Gets the user's input and displays the rivalry information between the two shark species.

"""

shark1 = input("Enter the name of the first shark species: ")

shark2 = input("Enter the name of the second shark species: ")

if is_shark_dangerous(shark1) and is_shark_dangerous(shark2):

rivalry_info = get_rivalry_info(shark1, shark2)

if rivalry_info:

print(f"Rivalry information between {shark1} and {shark2}:")

print(rivalry_info["rivalry"])

else:

print("No rivalry information found for the given shark species.")

else:

print("At least one of the given shark species is not considered dangerous to humans.")

if __name__ == "__main__":

main()

```