Skip to content

Tag: python-3.x

Python sum only number in list

I want to sum only number in list , my list contain also characters what is best way? I try this but error: what is best solution ?` Answer Since the character always appears as the last character in every element in the array, you can use the substring method to isolate the float part of each element All you