myList = [4, 'a', 'b', 'c', 1, 'd', 3]
myIntList = [x for x in myList if isinstance(x, int)]
myIntList
myStrList = [x for x in myList if isinstance(x, str)]
myStrList
Python - Splitting List That Contains Strings and Integers