From e3e4d992594aab28a5de9ee9634abc6146504020 Mon Sep 17 00:00:00 2001 From: Grenish rai <107925840+Grenish@users.noreply.github.com> Date: Tue, 1 Aug 2023 18:51:56 +0530 Subject: [PATCH] Update 002. Python If-Else.py --- Python/01. Introduction/002. Python If-Else.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Python/01. Introduction/002. Python If-Else.py b/Python/01. Introduction/002. Python If-Else.py index da03804..9a7e3f1 100644 --- a/Python/01. Introduction/002. Python If-Else.py +++ b/Python/01. Introduction/002. Python If-Else.py @@ -2,11 +2,9 @@ # Score: 10 -def wierd(n): - if n % 2 == 1 or 6 <= n <= 20: - print('Weird') +def weird_or_not(n): + if n % 2 == 1 or (6 <= n <= 20): + print("Not Weird") else: - print('Not Weird') - - -wierd(int(input())) + print("Weird) +weird_or_not(n)