Question: 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.

I have been having trouble with this line of my code:

```
chosen = input("Input a number")
number = (chosen) / chosen

```

When I run it, here is the output:

```
Input a number1
Traceback (most recent call last):
File "C:\Users\engineer2\Desktop\Programs\prime numbers.py", line 3, in <module>
number = (chosen) / chosen
TypeError: unsupported operand type(s) for /: 'str' and 'str'

```

Here is the full 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")

```

Answer: 
The issue is that `input()` returns a string rather than a number.
you first need to convert `chosen` to a number with `chosen = float(chosen)`. Then mathematical operations should work just fine..
`input()` function returns a `string` instead of an `int`. Try converting it or using `raw_input()` instead:

Method 1:

```
chosen = int(input("Input a number"))
number = (chosen) / chosen

```

Method 2:

```
chosen = raw_input("Input a number")
number = (chosen) / chosen

```