title: How do I divide a number stored inside a variable?
body: <p>The program I am writing allows you to input any number and the program will identify if the number is a prime number or not.  However, I am getting an error as shown below.</p>
  
  <p>I have been having trouble with this line of my code:</p>
  
  <pre><code>chosen = input("Input a number")
  number = (chosen) / chosen
  </code></pre>
  
  <p>When I run it, here is the output:</p>
  
  <pre><code>Input a number1
  Traceback (most recent call last):
  File "C:\Users\engineer2\Desktop\Programs\prime numbers.py", line 3, in &lt;module&gt;
  number = (chosen) / chosen
  TypeError: unsupported operand type(s) for /: 'str' and 'str'
  </code></pre>
  
  <p>Here is the full code:</p>
  
  <pre><code>chosen = input("Input a number")
  number = (chosen) / chosen
  one = 1
  if number == (one):
  print ("Its a prime number")
  
  
  else:
  print ("Not a prime")
  
  
  
  input ("press enter")
  </code></pre>