You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
184 B
Python

6 years ago
#!/usr/bin/env python3
with open('input.txt', 'r') as f:
in_list = f.readlines()
in_list = [x.strip() for x in in_list]
in_list = [int(x) for x in in_list]
print(sum(in_list))