cs/Practical File/question_05.py
Neil Revin cc8b0efe94
feat: add practical file projects
Signed-off-by: Neil <neil@willofsteel.me>
2025-06-24 02:28:22 +05:30

9 lines
208 B
Python

# Question: Write a Python program to find whether a given number is even or odd.
def main(num: int) -> None:
print("Even" if num % 2 == 0 else "Odd")
if __name__ == '__main__':
main(2)
main(3)