title: Py How to save an specific argument of the input
body: <p>What I want to do is saving the 2th argument of an single input to an specific variable to parse it on an argument in my another function so that my function works.</p>
  <pre><code>import sys
  import requests
  import argparse
  parser = argparse.ArgumentParser()
  
  
  
  def test(url):
      bb = requests.get(url)
      if bb.status == 200:
          bb = &quot;Success&quot;
      else:
          bb = False
      print(bb)
  
  def main():
      x = input(&quot;Choose: &quot;)
  
      dd = parser.add_argument(x)
      if x == &quot;check-status &quot; + dd.dest:
          test(dd) 
  
  
  
  if __name__ == &quot;__main__&quot;:
      main()
  </code></pre>
  <p>So here it also saves the &quot;check-status&quot;. But I do want that it only saves the 2th argument of input x in dd.dest.</p>
  <p>Can someone help. I tried researching a lot on internet but couldn't find an solution.</p>