problem 13 https projecteuler netproblem13 problem statement work out the first ten digits of the sum of the following onehundred 50digit numbers returns the first ten digits of the sum of the array elements from the file num txt solution 5537376230 returns the first ten digits of the sum of the array elements from the file num txt solution 5537376230
import os


def solution():
    
    file_path = os.path.join(os.path.dirname(__file__), "num.txt")
    with open(file_path) as file_hand:
        return str(sum(int(line) for line in file_hand))[:10]


if __name__ == "__main__":
    print(solution())