Im taking Intro to computer programming and I have to designed a program in python that reads the numbers on a .txt file and then adds those numbers and display the sum to the user. Very simply program but I can't get it to work. I know sure how to write the code.
The program has to read all the lines in the file without me having to tell it how many lines I want it to read, so it has to have a while loop.
I hope someone can help me with this. Thank you