title: Python Random variable printing back "None"
body: <p>I'm basically trying to create something of an mad libs generator. When it runs through all the random variables, and I try to get it to save as a variable, and then print that variable I get &quot;none&quot;</p>
  <p>I'm a novice so I apologize if this is painfully dumb. Link to colab notebook where you can see it: <a href="https://colab.research.google.com/drive/1Eh0-ACUJOduxjRbsql7ut_VgZEE4PBWW?usp=sharing" rel="nofollow noreferrer">https://colab.research.google.com/drive/1Eh0-ACUJOduxjRbsql7ut_VgZEE4PBWW?usp=sharing</a></p>
  <p>This is the code</p>
  <pre><code>import random
  
  #Word Buckets
  list = (&quot;Todd&quot;, &quot;Jill&quot;,&quot;Mary&quot;)
  secondlist = (&quot;hot&quot;,&quot;cold&quot;,&quot;run&quot; )
  thirdlist = ('pizza','pasta',&quot;wine&quot; )
  
  
  #Create Define random choices
  def def1 ():
    d=random.choice(list)
    a=random.choice(secondlist)
    r=random.choice(thirdlist)
    c=random.choice(list)
    print(d,a, (r+&quot;'s&quot;),c)
  
  def def2 ():
    d=random.choice(list)
    a=random.choice(secondlist)
    f=random.choice(thirdlist)
    fv=random.choice(thirdlist)
  
    print(fv, &quot;Because of&quot;,(d+&quot;'s&quot;),f)
  
  
  titletype = (def1, def2)
  #random.choice(titletype)()
  message=random.choice(titletype)()
  print(message)
  </code></pre>
  <p>And that will return
  <strong>None</strong></p>