Apr-26-2021, 11:14 AM
Try to post some code of what you tired next time.
Something like this.
Something like this.
lst = [] with open("number.txt") as f: for line in f: lst.append([int(i) for i in line.split()])
>>> lst [[40, 65, 77, 80], [32, 62, 96, 22]] >>> lst[0] [40, 65, 77, 80] >>> sum(lst[0]) 262