Im new to programming and i needed help with one of my assignments. (not asking for a solution). Im confused how to approach this problem. If you can provide pseudocode to get me in the right direction it be helpful.
So far,
- Take an input for a file
- Read Files testFile = inputFile.read()
- This is where i'm confused. I know there needs to be a for loop to go through the text file. calculate sum for line in testFile: //Logic
Refer to Text File for text file and corresponding expected output.
So for example: without using lens function
x = input("enter a file to read: ") y = input("enter a file to write: ")
filereading = x.readline()
what characters do i need to strip in order to get the two values to add. Also i need the output to have $ # with a space in between.
for line in filereading: \logic