Skip to content

internetghost2/sum_numbers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Sum Numbers

using a document and converter a list, then just sum the numbers with python3

"""

DAY 1 Advetocode

This program takes numbers from another document and calculate the solution

by Marc Hortelano

"""

path = 'file' # Change this to your document locate

with open(path) as f:
  lst = [int(x) for x in f.read().split()]
  sol = 0

for i in lst:
    sol = sol + i 
print (sol)

About

using a document and converter a list, then just sum the numbers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors