1. It says the first line is showing the number of matches, that's where n comes from. After that, it is displaying the scores. It is just a variable name, so don't need to worry too much about why it is, just how it was designated (i is really common for iterations in for loops).
2. Those are the conditions of the for loop, it means set i=1 initially, and while i does not exceed n, add 1 to i for each time the loop is completed. Normally, you would use
but when it comes to human reading, it's more natural to read it as match 1,2,3.... rather than 0,1,2.....
3. abs means absolute, if the answer inside the brackets was positive, it would do nothing, but it it was negative, it would turn it into a positive number.
4. == is a comparison operator in most languages (a single = being an assignment). It just means to make sure the values are the same.
5. It means save and close the file, it might not be strictly necessary (I believe it always saves anyway), but it's good practice to close files when you're done using them.