title: How to reach every single element which is not list in random nested list?
body: <p>Assume there are a list like following, it is important to note that this is an arbitrary list, to demonstrate that list contains completely random lists with strings/numeric values:</p>
  
  <pre><code>[[["1"],"1"],["2",[["123",[[["23"]]],23],[12.3,"23"]]],[["5"],"1","1"]]
  </code></pre>
  
  <p>I want to get every single item in this list but I want to get only numbers or strings but not list. Let's say, I created a function which takes only strings, integers and float but not lists. I want to use this function.</p>
  
  <p>I want to create the same list but with different object based on the function's output. Let's say function converts string to numeric value. I want to create a list like that:</p>
  
  <pre><code>[[[1],1],[2,[[123,[[[23]]],23],[12.3,23]]],[[5],1,1]]
  </code></pre>
  
  <p>I thought and I could not come with an answer. How can I do that?</p>