From ed82388eae4b77d690e4553872cce0bf364c53ff Mon Sep 17 00:00:00 2001 From: naveen-thati <62880811+naveen-thati@users.noreply.github.com> Date: Thu, 23 Apr 2020 17:14:01 +0530 Subject: [PATCH] Create python if else this code is passing all the test cases --- python if else | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 python if else diff --git a/python if else b/python if else new file mode 100644 index 0000000..94b79eb --- /dev/null +++ b/python if else @@ -0,0 +1,11 @@ +if __name__ == '__main__': + N = int(input().strip()) + +if N % 2 != 0: + print("Weird") +if N in range(2,6) and N%2==0: + print("Not Weird") +elif N in range(6,21): + print("Weird") +elif N > 20 and N%2==0: + print("Not Weird")