title: Is there a function to 'autocomplete' a variable to a desired library?
body: <p>I'm trying to set a variable to one I have in a library. Is there a command to do this?</p>
  
  <p>I'm trying to make a simple time zone converter and I want to check the input variable, but I can only check the variables in the list from pytz so I want to 'autocomplete' the variable. can I do this?</p>
  
  <pre><code>import time
  import pytz
  country = input("enter country")
  
  from datetime import datetime
  from pytz import timezone
  
  fmt = "%H:%M %p"
  
  now_utc = datetime.now(timezone('UTC'))
  print (now_utc.strftime(fmt))
  
  from pytz import all_timezones
  if country in all_timezones:
      country = #completed country in list 'all_timezones'
      timecountry = now_utc.astimezone(timezone(country))
      print (timecountry.strftime(fmt))
  </code></pre>