title: ImportError: cannot import name 'wait' from 'os' (C:\Python38\lib\os.py)
body: <p>I'm working on a Python script that scrapes a website based on user input.  For practice, I'm using a sample website from which I am scraping data.  The issue I have is in my use of the wait(10) method.  The code reads as follows:</p>
  <pre><code>from os import wait
  from lxml import html, etree
  import requests
  
  def select_PA_city(self):
      pa_city_list = [&quot;Philadelphia&quot;, &quot;Pittsburgh&quot;, &quot;Harrisburg&quot;, &quot;Erie&quot;, &quot;Scranton&quot;, &quot;Allentown&quot;]
      print(&quot;The major cities in Pennsylvania are Philadelphia, Pittsburgh, Harrisburg,&quot;
            &quot;Erie, Scranton, and Allentown.&quot;)
      city_found = False
      while not city_found:
          pa_city = input(&quot;Select a Pennsylvania city from this list:&quot;)
          for city in pa_city_list:
              if pa_city == city:
                  print(&quot;You selected &quot; + pa_city)
                  city_found = True
              else:
                  pass
          if city_found:
              print(&quot;That city is one of the top 6 listed.&quot;)
          else:
              print(&quot;That city (&quot; + pa_city + &quot;} is not in the top 6.  Please try again.&quot;)
              os.system.wait(10)
      return pa_city
  </code></pre>
  <p>Now I'm using PyCharm community as my Python IDE and the first import statement is not being recognized.  I checked the os.py module in my c:\Python38\Lib\ directory, and cannot find the wait method in there.  How do I locate the actual wait() method definition in another Python module, or is there another Python module that contains the wait() method?  If not, what alternate method should I use for initiating a 10-second delay?</p>