Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with open("test.txt", mode = "r") as my_file:
- int_list = list(map(int, ([element for element in my_file.readlines()])))
- print(sum(int_list))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement