diff --git a/problems/easy/easy_q1.py b/problems/easy/easy_q1.py index 7bc166e..3660ade 100644 --- a/problems/easy/easy_q1.py +++ b/problems/easy/easy_q1.py @@ -2,22 +2,15 @@ num = int(input("Enter a number: ")) - -if num % 2 != 0: - print("{0} is odd".format(num)) -else: - print("{0} is even".format(num)) - + if (num % 2) == 0: print("{0} is Even".format(num)) else: print("{0} is Odd".format(num)) - -if (num % 2) != 0: - print("{0} is odd".format(num)) -else: - print("{0} is odd".format(num)) + + +