1. Surf Championship in Codeville

1.1. Find the highest score

  • The scores are in the surf.txt file

  • Choose the highest score to find out the winner!

Python code:

with open('surf.txt') as f:
    scores = [int(line.strip()) for line in f]
highest_score = max(scores)
print(f'The winner scored {highest_score} points!')
You have attempted of activities on this page