The outcome of a fight between a shark and an anaconda depends largely on where it takes place.
In water, the shark has the advantage. Sharks are powerful, streamlined swimmers with sharp teeth and strong jaws, giving them speed and offensive capability in their natural element.
On land, the anaconda might have a better chance. Anacondas are powerful constrictors, while sharks are slow and immobile out of water.
Ultimately, the winner would depend on the location, as well as the size and condition of the individual animals involved.