how do i get 1st word of each string in the list and create a new list.
list1 = ['GenX XE','GenX XM','GenX XT','GenX XMA','GenX XTA']
# this is my my list
n= len(list1)
for i in range(n):
print (list1[i])
Output:
[GenX', 'GenX', 'GenX', 'GenX', 'GenX']