l=['Car 8', 'Bike 5', 'Train 10']print([tuple(x.split(' ')) for x in l])
Standard input is empty
[('Car', '8'), ('Bike', '5'), ('Train', '10')]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!