From 08384edfcaf805e988c5ca7fd62d43e38348303d Mon Sep 17 00:00:00 2001 From: Pavithra <34917257+Pavithradevadiga@users.noreply.github.com> Date: Fri, 26 Nov 2021 11:30:36 +0530 Subject: [PATCH] Prints if input is even or odd A new one liner python program which would print if the the input is Odd or even --- evenOdd | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 evenOdd diff --git a/evenOdd b/evenOdd new file mode 100644 index 0000000..5c1b657 --- /dev/null +++ b/evenOdd @@ -0,0 +1,2 @@ +#Prints out if the input number is even or odd ;Ex 1: Sample Input : 6,Expected Output :even ;Ex 2: Sample Input : 3,Expected Output : 5 +result = "even" if int(input()) % 2 == 0 else "odd"