<jupyter_start><jupyter_text>[Codewars](https://www.codewars.com/kata/53da3dbb4a5168369a0000fe/train/python)- Fundamentals- Mathematics- Algorithms- Numbers  Even or Odd> > Create a function that takes an integer as an argument and returns > > "Even" for even numbers or "Odd" for odd numbers.><jupyter_code># Tests

import codewars_test as test
from solution import even_or_odd

@test.describe("Fixed Tests")
def fixed_tests():
    @test.it('Basic Test Cases')
    def basic_test_cases():
        test.assert_equals(even_or_odd(2), "Even")
        test.assert_equals(even_or_odd(1), "Odd")
        test.assert_equals(even_or_odd(0), "Even")
        test.assert_equals(even_or_odd(1545452), "Even")
        test.assert_equals(even_or_odd(7), "Odd")
        test.assert_equals(even_or_odd(78), "Even")
        test.assert_equals(even_or_odd(17), "Odd")
        test.assert_equals(even_or_odd(74156741), "Odd")
        test.assert_equals(even_or_odd(100000), "Even")
        test.assert_equals(even_or_odd(-123), "Odd")
        test.assert_equals(even_or_odd(-456), "Even")<jupyter_output><empty_output><jupyter_text>My Solution My UnderstandingI will be given a number and I need to return: Even or Odd.  I am pretty sure the only real way to do thisis with the modulo % remainder expression.- [x] Create an if statement for when `number` is even - remainder is 0- [x] Add else statement - when `number` is not even - remainder is > 0<jupyter_code>def even_or_odd(number):

    # When number is even - has no remainder
    if number % 2 == 0:
        return 'Even'
    
    # Number is not even - has remainder
    else: return 'Odd'
even_or_odd(2)
even_or_odd(1)
even_or_odd(-123)<jupyter_output><empty_output><jupyter_text>Other Solutions<jupyter_code>def even_or_odd(number):
    return 'Odd' if number % 2 else 'Even'
def even_or_odd(number):
  return ["Even", "Odd"][number % 2]<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11715481171548117, 'fraction_numerical': 0.03190376569037657, 'mean_word_length': 4.358543417366946, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 19, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '291100', 'license': 'MIT', 'n_tokens_mistral': 702, 'n_tokens_neox': 655, 'n_words': 167, 'path': '2021/September/8_kyu/Tuesday-Sept-21-Even-Odd.ipynb', 'repo_name': 'RMDircio/Coding_Challenges', 'size': '1912'}