>>> l = ['element1 0238.94', 'element2 2.3904', 'element3 0139847'] >>> [i.split(' ', 1)[0] for i in l] ['element1', 'element2', 'element3']