I am not sure why this repeats line1 line2 line3 then line 1 line 2 line 3 there is 6 lines in the file.
but anyway if that does not matter...
How can I see the data such as $10.00 and not 'Line 1\n'....
How can I sum each line until it equals $60.00
Thanks for any help.

ok thanks so much I will try this and get back to you.
print [float(i.split('$')[1])#########for i in lst]
I got a syntax error where I put the #######
I am not sure what the first line of code
with open('number.txt') as f:
I am using python33

print [float(i.split('$')[1])#########for i in lst]
I got a syntax error where I put the #######

In Python 3 print is a function so you need ().

#Python 3
with open('number.txt') as f:
lst = [i.strip() for i in f]
print(lst)
print([float(i.split('$')[1]) for i in lst]) #split out $ and make float
print(sum(float(i.split('$')[1]) for i in lst)) #sum upp all numbers

I am not sure what the first line of code

with open() is the prefered way to use.
It dos some cleaing up and close file object for you.

can you help me doing the same thing using the code below?
also in my version

Not sure if this will help me but....This is the file: This how the program writes the $10.00 too the file.
Iam also using notepad
how does it work without "C:\number.txt"mine won't woek without the C:\ part
and number_lst = []I needed to change to number_lst=[]
$10.00
$8.00
$10.00
$6.00
$10.00
$10.00

The only issue I have is to change the list.
The result equals say: 54.0 but I can't seem to find what represents the amount of 54.0 I tried type and print(number_lst) but it comes back as a list or 10.0 How can I change it back to something, I can use to display, like a float that equals $54.00 varriable? and not a list?
I want to use this number in a Frame for display only reasons.
I don't need help on how to put it in the Frame.
Do I need to use .format?
Thanks