ctf-resources/htb/hacktheboo2024/coding/[Very Easy] oddly_even/challenge/challenge.py

11 lines
189 B
Python

import random
def even_or_odd(n):
if n % 2 == 0:
return 'even'
return 'odd'
def gen_question():
n = random.randint(1, 100_000)
return f'{n}', f'{even_or_odd(n)}'