I tried to make a odd/even 'calculator' in python and it keeps popping up errors. Here's the code:

```
def odd_even():
    print("Welcome to Odd/Even")
    num = input("Pick a number: ")
    num2 = num/2
    if num2 == int:
        print("This number is even")
    else:
        print("This number is odd")

```

Id like to know whats causing the errors and solutions to them
['https://Stackoverflow.com/questions/50848178', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/9394239/']
There is an error in the line: `num = input("Pick a number: ")`
Because input method always returns a `String`,so you should convert it into int to performs the `integer` operation
The currect code is:

```
num =int( input("Pick a number: "))

```
you can't do math with strings convert it to int

```
try:
    num = int(input("Pick a number: "))
except ValueError:
    print('This is not a number!')
    return 

```