I have a list full of floats, ints and strings mixed in unknown order. I want to find all string values and replace them with 0. Problem is that i dont know what will this string look like except that it will contain 4 characters (hex number).
So for example i will have such a list:
h = [1, 2, 5.3, '00cc', 3.2, '085d']
And I want to replace those strings (in this example '00cc' and '085d') with zeros so that my final list will look like:
h = [1, 2, 5.3, 0, 3.2, 0]
I know the ways to find string or value in list and replace it but not in case when I know only type and length of list element.