title: Python going through links randomly in a list
body: <p>so here is my code</p>
  
  <pre><code>import random
  import webbrowser
  
  results = []
  with open("al.txt") as inputfile:
     for line in inputfile:
           results.append(line.strip().split(','))
  
  x = (random.choice(results))
  
  webbrowser.open(x)
  </code></pre>
  
  <p>i tried to print out what's inside of the random and it's like this:</p>
  
  <pre><code>[["youtube.com"], ["google.com"]]
  </code></pre>
  
  <p>so i think the "[" key is causing this</p>
  
  <p>i also tried to use it like this in another script</p>
  
  <pre><code>import webbrowser
  
  webbrowser.open(url)
  </code></pre>
  
  <p>it is working as expected so when i do</p>
  
  <pre><code>webbrowser.open(x)
  </code></pre>
  
  <p>it just recognize x as ["youtube.com"] or "["youtube.com"]"</p>
  
  <p>how can i solve this problem</p>