how to seperate words and number in a list

Solutions on MaxInterview for how to seperate words and number in a list by the best coders in the world

showing results for - "how to seperate words and number in a list"
Serena
24 Mar 2019
1ip=['a',1,2,3]
2m=[]
3n=[]
4for x in range(0,len(ip):
5    if str(ip[x]).isdigit():
6        m.append(ip[x])
7    else:n.append(ip[x])
8print(m,n)