Solutions will be available when this assignment is resolved, or after a few failing attempts.

Count lines in file

Write a function, that receives a path to a text file as parameter, and returns the amount of lines that text file has.

count_lines('test-file.txt')  # 10

Test Cases


def count_lines(filepath): pass