Returning the first number of a parameter in Python
<p>Edit: Thank you guys for your help, but I had trouble applying it to my actual problem. I was trying to get a general idea of how to do a similar problem to one I was assigned, but I haven't been able to figure it out.</p>

<p>So, my functions is going to take two parameters, both of which are numbers. If the first parameter is equal to 0, I have to set it to the first number that occurs in the second parameter.</p>

<p>so like if</p>

<blockquote>
  <blockquote>
    <blockquote>
      <p>num_call(0, 23)</p>
    </blockquote>
  </blockquote>
</blockquote>

<p>I would have to return a 2.</p>

<p>Any tips on how to do this? Or would the way you guys have been describing work?</p>

<p>Thanks so much</p>
