How to convert to Python list comprehension
<pre><code>ls = ['abc', 56, 49, 63, 66, 80]
for i in ls:
    if(isinstance(i, int) or isinstance(i, float)):
        for i in range(len(ls)):
            ls[i] = str(ls[i])
</code></pre>

<p>May I know how to create the list comprehension of above code?</p>

<p>I am trying  the following but not working</p>

<pre><code>if (s for s in ls isinstance(s, int) or isinstance(s, float)):
    for i in range(len(ls)):
        ls[i] = str(ls[i])
</code></pre>