title: how to get string from index
body: <p>I wanted to know how do I get string from index.</p>
  
  <p>For example:</p>
  
  <ul>
  <li>in <code>user_input</code> I enter <code>5 5 4 6 1</code></li>
  <li>in <code>number_pick</code> I enter <code>4</code></li>
  <li>The correct output should be <code>Value: 6</code></li>
  </ul>
  
  <p>This is my code. It's not giving me the right value. If anyone could help that will be useful. (I'm a beginner in Python)</p>
  
  <pre><code>import math 
  user_input1 = input("Your chosen number: ")
  
  number_pick = input(" Num?")
  
  value_of_pick1 = user_input1.find(number_pick)
  
  value1 = user_input1[value_of_pick1]
  
  print("Value: ", value1)
  </code></pre>