641 B
641 B
Oddly Even
1st October 2024
Prepared By: ir0nstone
Challenge Author(s): ir0nstone
Difficulty: Very Easy
Synopsis
Given a number, print "even" if it is even and "odd" if it is odd.
Skills Required
- Basic Python
Solution
First, we take in the number:
a = int(input())
We can then check if the number is divisible by 2
. If it is, we print "even", otherwise we print "odd".
if a % 2 == 0:
print('even')
else:
print('odd')