Bill wrote:
>> So I opted for this
>>
>> wRes = float(data[1].strip(','))
>>
>> which seems to work fine.

Orri wrote:
> You could just do
> 
> wRes = float(data[1][:-1]) (up to the last digit, which would be the comma)

Orri,

Thank you!

I had never used slicing before (until today). I learn something new 
everyday!

Bill
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to