title: AttributeError: 'list' object has no attribute 'sample'
body: <p>I ask user to enter min_number and max_number. For example user set min_number: 2 and max_number: 6</p>
  <p>Random give me [3, 5] and this error</p>
  <blockquote>
  <p>random = random.sample(range(1, 80), min_number)
  AttributeError: 'list' object has no attribute 'sample'</p>
  </blockquote>
  <p>'list' object has no attribute 'sample'</p>
  <pre><code>while min_number &lt;= max_number:
          random = random.sample(range(1, 10), min_number)
          print (random)
          for j in random:
              element = wait.until(EC.element_to_be_clickable((By.XPATH, f'//*[@id=&quot;app&quot;]/div/div[3]/div/div[1]/div[{j}]/div')))
              element.click()
              time.sleep(1)
              j += j
  
          min_number += min_number
  </code></pre>