```if-not:sql
Create a function (or write a script in Shell) that takes an integer as an argument and returns "Even" for even numbers or "Odd" for odd numbers.
```

```if:sql
## SQL Notes:
You will be given a table, `numbers`, with one column `number`.

Return a table with a column `is_even` containing "Even" or "Odd" depending on `number` column values.

### numbers table schema
* number INT

### output table schema
* is_even STRING
```

Difficulty: introductory

Starter code:

def even_or_odd(number):
	

Solutions:
def even_or_odd(number):
    return 'Odd' if number % 2 else 'Even'

def even_or_odd(number):
  return 'Even' if number % 2 == 0 else 'Odd'

def even_or_odd(number):
  if number % 2 == 0:
    return "Even"
  else:
    return "Odd"

def even_or_odd(number):
  return ["Even", "Odd"][number % 2]

def even_or_odd(number):
  # number % 2 will return 0 for even numbers and 1 for odd ones.
  # 0 evaluates to False and 1 to True, so we can do it with one line
  return "Odd" if number % 2 else "Even"

def even_or_odd(number):
    status = ""
    if number % 2 == 0:
        status = "Even"
    else:
        status = "Odd"
    
    return status


def even_or_odd(number):
  return 'Odd' if number & 1 else 'Even'

def even_or_odd(number):
    if number % 2:
        return "Odd"
    return "Even"

even_or_odd = lambda number: "Odd" if number % 2 else "Even"


def even_or_odd(number):
  if number == 0:
    return "Even"
  elif number % 2 == 0:
    return "Even"
  else:
    return "Odd"

def even_or_odd(number):
  if number%2 == 0: return 'Even'
  return 'Odd'

def even_or_odd(number):
  return number % 2 and 'Odd' or 'Even'

even_or_odd=lambda n:'EOvdedn'[n%2::2]

even_or_odd = lambda n: ["Even","Odd"][n % 2]

def even_or_odd(number):
    even_or_odd = {0: "Even", 1: "Odd"}
    return even_or_odd[number % 2]

even_or_odd = lambda i: 'Odd' if i&1 else 'Even'

even_or_odd = lambda x: "Even" if x % 2 == 0 else "Odd"

def even_or_odd(number):
    if(number <0):
        number = -1 * number
    if(number % 2 ==0 or number ==0):
        return "Even"
    else:
        return "Odd"

def even_or_odd(number):
    if not isinstance(number, int):
        raise Exception('The input is not an integer')
    if number % 2 == 0:
        return 'Even'
    return 'Odd'

def even_or_odd(x):
       if x % 2 == 0:
           return 'Even'
       else:
           return 'Odd'
    


even_or_odd = lambda number: 'Even' if (number % 2 == 0) else 'Odd'

even_or_odd = lambda n: "Odd" if n % 2 else "Even"

even_or_odd = lambda n: "Even" if n%2 == 0 else "Odd"


def even_or_odd(n):
    if n % 2 == 0:
        return "Even"
    else:
        return "Odd"

def even_or_odd(n):
  return "Even" if n%2==0 else "Odd"


def even_or_odd(number):
  """Returns if number is even or odd"""
  return 'Even' if number % 2 == 0 else 'Odd'

even_or_odd=lambda n:('Even','Odd')[n%2]

def even_or_odd(number):
  return ("Even", "Odd")[number%2]

def even_or_odd(number):
  output = ["Even", "Odd"]
  return output[(number % 2)]

def even_or_odd(number):
  return('Even','Odd')[number&0x1]

def even_or_odd(number):
    return ['Even','Odd'][number%2==1]

def even_or_odd(n):
    return "Odd" if n & 1 else "Even"

def even_or_odd(number):
    return ["Even","Odd"][float(number) /2 != int(number/2)]

def even_or_odd(number):
  if number % 2 == 1:
    return "Odd"
  else:
    return "Even"

def even_or_odd(number):
    number = str(number)
    even = ['0', '2', '4', '6', '8']
    if number[-1] in even:
            return "Even"
    else:
        return "Odd"

def even_or_odd(number):
    string = ""
    
    #check last bit of number, if 1 number is odd, if 0 number is even
    if (number & (1>>0)):
        string = "Odd"
    else: 
        string = "Even"
    return string

def even_or_odd(number):
    if number % 2 == 0:
        return"Even"
    elif number % 2 == 1:
        return"Odd"
    else:
        return"you are somewhat wrong"

def even_or_odd(number):
    test = "0"
    if number %2 == 0:
        test="Even"
    else:
        test="Odd"
    return test

def even_or_odd(value):
    value2 = 2
    result = value % value2

    if result == 0:
        result_real = "Even"
    else:
        result_real = "Odd"
    return result_real

def even_or_odd(number):
    if number == 0:
        return("Even")
    elif number % 2 == 0:
        return("Even")
    else:
        return("Odd")
        
even_or_odd(2)
even_or_odd(0)
even_or_odd(7)
even_or_odd(1)
even_or_odd(-1)

def even_or_odd(number):
    i = number / 2
    
    if int(i) == float(i):
        return "Even"
    else:
        return "Odd"

def even_or_odd(number):
    message = ""
    if number % 2 == 0:
        message = "Even"
    else:
        message = "Odd"
    return message

# takes number
# returns "Even" for even numbers; "Odd" for odd numbers
def even_or_odd(number):
    return "Even" if number % 2 == 0 else "Odd"

  
def even_or_odd(number):
    if number % 2 == 0:
        return 'Even'
    else:
        return 'Odd'


def even_or_odd(number):
    return "Even" if number % 2 == 0 else "Odd"


def even_or_odd(number):
    return ["Even", "Odd"][number % 2]






def even_or_odd(number):
  ievade = int(number)
  if ievade % 2 == 0:
    return("Even")
  else:
    return("Odd")


def even_or_odd(number):
    number = 'Odd' if number % 2 else 'Even'
    return number

def even_or_odd(number):
    modulo = number % 2

    if modulo == 1:
        return 'Odd'
    elif modulo == 0:
        return 'Even'

def even_or_odd(number):
    
    f=number/2
    check = f.is_integer()
    
    if  check == True :
        return "Even"
    else:
        return "Odd"


def even_or_odd(num):
    if (num % 2 != 0):
        return 'Odd'
    else:
        return 'Even'

def even_or_odd(number):
    divisable = number % 2
    if divisable == 0:
        return 'Even'
    else:
        return 'Odd'

def even_or_odd(number):
    if not isinstance(number, int):
        print('This is not an integer')
    elif number % 2 == 0:
        return 'Even'
    else:
        return 'Odd'

def even_or_odd (name):
    a = 'Even'
    b = 'Odd'
    if name % 2 == 0:
        return a
    else:
        return b
even_or_odd(3)

def even_or_odd(number=0):
    if number%2==0:
        return "Even"
    if number%2!=0:
        return "Odd"


def even_or_odd(number):
    assert type(number) == int
    return "Even" if number%2 == 0 else "Odd"

def even_or_odd(number):
    # "Even" when remainder is 0
    # Otherwise "Odd" when remainder is not 0
    if number % 2 == 0:
        return "Even"
    return "Odd"

def even_or_odd(number):
    try:
        if number % 2 == 0:
            return('Even')
        elif number % 2 == 1:
            return('Odd')
    except:
        print('error: not a number')

def even_or_odd(number):
    """
    if number mod 2 equal 0 that means number is even
    otherwise its an odd number
    """
    if (number%2) == 0:
        return "Even"
    else:
        return "Odd"

def even_or_odd(number):
    res = number % 2
    if res == 0:
        return "Even"
    return "Odd"

def even_or_odd(number):
    if int(number/2) == float(number/2):
        return "Even"
    else:
        return "Odd"

num = 10024001232
print(even_or_odd(num))

def even_or_odd(number):
    ans = number % 2 
    if ans == 0 :
        return "Even"
    else :
        return "Odd"


def even_or_odd(number):
    x= 'Odd'
    y='Even'
    if number % 2 == 0:
        return y
    else:
        return x

def even_or_odd(number):
    """If loop using modulo to return 0 or 1, even or odd"""
    if number % 2 == 0:
        return "Even"
    else:
        return "Odd"

def even_or_odd(number):
    ostatok = number % 2
    if ostatok == 0:
        return "Even"
    else:
        return "Odd"

def even_or_odd(number):
    if number%2 == 1:
        return 'Odd';
    if number%2 == 0:
        return 'Even';
    return


def even_or_odd(number):
    if number % 2 == 0:
        return "Even"
    if number % 2 == 1:
        return "Odd"
    if number % 2 == -1:
        return "Odd"

def even_or_odd(number):
    if number % 2 == 0:
        return 'Even'
    elif number < 0:
        return 'Odd'
    else:
        return 'Odd'

def even_or_odd(number):
    return "Even" if is_even(number) else "Odd"


def is_even(number):
    return True if number % 2 == 0 else False


def even_or_odd(number):
    
    if type(number) == int:
        return "Even" if number % 2 == 0 else "Odd"
    else:
        return "Parameter needs to be an integer."

def even_or_odd(number):
    
    if type(number) == int and number % 2 == 0:
        return "Even"
    elif type(number) == int and number % 2 != 0:
        return "Odd"
    else:
        return "Parameter needs to be an integer."

def even_or_odd(number):
    if number % 2 == 0:
        return 'Even'
    else:
        return 'Odd'
    
print(even_or_odd(153))

def even_or_odd(number):
    solution = "Odd"
    if number % 2 == 0:
        solution = "Even"
    return solution


def even_or_odd(number):
    if number % 2 == 0:
         print('This one is Even') 
         return('Even')
    else:
        print('This one is Odd') 
        return('Odd')


def even_or_odd(n):
    if n%2 == 0 :
        return "Even"
    elif n%2 == 1:
        return "Odd"
    else:
        return "Invalid input"


a=even_or_odd(5) 
print(a)

def even_or_odd(number):
    a = int(number/2)
    if number/2 == a: return "Even"
    else: return "Odd"

def even_or_odd(number):
    modresult = number % 2
    if modresult != 0:
        print("Odd")
        return "Odd"
    else:
        print("Even")
        return "Even"

def even_or_odd(number):
    if number % 2:     #any number above 0 is considered "True"
        return "Odd"   #so you can skip needing to do an equality check
    return "Even"


def even_or_odd(number):
    number = number%2
    if number == 0:
        return "Even"
    elif number == 1:
        return "Odd"

def even_or_odd(number):
    check = abs(number) % 2
    if(check == 0):
        return("Even")
    else:
        return("Odd")

def even_or_odd(number):
    if number % 2 == 0:
        return 'Even'
    elif number % 2 != 0:
        return 'Odd'
    else:
        return 'False'

def even_or_odd(number):
    number>=0
    if number%2==0:
        return "Even"
    else:
        return "Odd"

def even_or_odd(number):
    if number % 2 == 1:
        number = "Odd"
        return number
    else:
        number = "Even"
        return number

def even_or_odd(number):
    """Determines if a number is even or odd."""
    if number % 2 == 0:
        return "Even"
    else:
        return "Odd"


def even_or_odd(number): 
    #and that's okay!
    if number % 2 == 0:
        #TELL MEEEEE
        return "Even"
    else:
        return "Odd"

def even_or_odd(number):
    number = int(number)
    if number.__mod__(2) == 0:
        return "Even"
    else:
        return "Odd"

def even_or_odd(number):
    if number % 2 == 0:
        return "Even"
    else:
        return "Odd"

number = 0
even_or_odd(number)

def even_or_odd(number):
    if number % 2 == 0:
        return "Even"
    else:
        return "Odd"
#pogchamp


def even_or_odd(number):
    z = number % 2
    if z == 0:
       # print(f"{number} Even")
        return('Even')
    else:
        #print(f"{number} Odd")
        return('Odd')

number=int(2)
def even_or_odd(number):
    if number%2==0:
        return "Even"
    else :
        return "Odd"

def even_or_odd(number):
    if number % 2:
        return('Odd')
    else: 
        return('Even')
even_or_odd(1)

def even_or_odd(number):
    r = (number) / 2
    if r % 1 :
        return ("Odd")
    else : return ("Even")

def even_or_odd(number):
    num=int(number)
    if (num%2==0):
        return "Even"
    return "Odd"

def even_or_odd(number):
    if (number % 2) == 0:
        return("Even")
    else:
        return("Odd")
#He's only gone and done his fifth kata


def even_or_odd(number):
    if number % 2 == 0:
        return "Even"
    else:
        return "Odd"

x = even_or_odd(-1)
print(x)

def even_or_odd(number: int) -> str:
    """Check if number is even or odd. Return 'Even' or 'Odd'"""
    if type(number) is not int:
        print('Argument must be an integer!')
    else:
        return "Even" if number % 2 == 0 else "Odd"


def even_or_odd(number):
    if number % 2 == 1:
        return "Odd"
    elif number % 2 ==0:
        return "Even"
    else:
        return "Error"

def even_or_odd(number):
    if(number % 2) == 0: #check if the remainder of number is 0
        return "Even" #if no remainder then return even
    else:
        return "Odd" #if there is a remainder, return odd

def even_or_odd(number):
    if number % 2 == 0 or number == 2 or number == 0:
        return "Even"
    else:
        return "Odd"

def even_or_odd(number):
    bool = (number % 2 == 0)
    if bool:
        return 'Even'
    return 'Odd'

def even_or_odd(number):
    num = number
    if num == 0:
        return "Even"
    if (num % 2) == 0:
        return "Even"
    if (num % 2) != 0:
        return "Odd"

def even_or_odd(number):
    if number % 2 == 0:
        return "Even"
    else:
        return "Odd"
even_or_odd(0)
print(even_or_odd)