converting string to tuple,"print([(x[0], x[-1]) for x in l])"