title: typeerror: must be str, not type
body: <p>I am writing a program that will roll a die. This is my code:</p>
  
  <pre><code>import random
  
  Number_of_sides = input("How many sides should the die have?")
  Number_of_sides = int
  
  print("OK, the number of sides on the die will be" + Number_of_sides)
  
  number = random.randit(1, Number_of_sides)
  
  print(number)
  </code></pre>
  
  <p>When I run the program I get this error:</p>
  
  <pre><code>File "die.py", line 6, in &lt;module&gt;
      print("OK, the number of sides on the die will be" + Number_of_sides)
  TypeError: must be str, not type
  </code></pre>
  
  <p>My questions are: what went wrong and how can I fix it? How can I avoid it in the future?</p>