# linking-together

Chris Maughan

12/01/2022, 5:16 PM
From the Advent of Code Mega solutions thread: A GPT-3 solution. The prompt was: "Prompt: Write a Python3 program to parse a file that consists of groups of integers. Each group is separated by newlines, and groups are separated by two newlines. Sum up the numbers in each group and find the largest sum. One line. Input file is day1.txt." The solution:
Copy code
print(max([sum(list(map(int,line.split()))) for line in open('day1.txt').read().split('\n\n')]))
Maybe the future of code is 'English' 😄