Question: Python Problem I need to make a match prediction between these fighter. the data is above. Number 4 i mean the starting index and the

Python Problem
I need to make a match prediction between these fighter. the data is above. Number 4 i mean the starting index
and the number after is the the starting index of they lost against. So i need to count how many time each fighter win against to each other.
First fighter is John Cena,
Second is Big Show
third isRey mysterio
fourth is Kane
John Cena vs Big Show
John Cena win 2 times against big show
and big show win 1 time against john cena
Second match Kane vs Rey mysterio
Kane win 1 time and Rey also win 1 time
because Kane win because of draw.
Now John Cena vs Kane. 1/1 john cena is the finalist winner.
This is my code

It work and it comes out John Cena win. Do i need to copy the data again to do it for Kane vs Rey and John Cena vs Kane? or how do i make loop from the line 24 to 51.
This is the matchup data

1 John Cena 2 Big Show 3 Rey Mysterio 4 4 4 4 Kane Big Show Big Show Kane Kane Kane John Cena Rey Mystrerio Rey Mysterio e John Cena Kane Rey Myste John Cen John Cena Big Show Kane 4 Kane lohn cens Big Show Rey Mysteri
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
