I'm totally new to Python and I'm sure I'm missing something simple, I want to remove all Strings.
def filter_list(l):
for f in l:
if isinstance(f, str):
l.remove(f)
return l
print(filter_list([1,2,'a','b']))
The output I get is:
[1,2,'b']