diff --git a/Python/Introduction/Python_If-Else.py b/Python/Introduction/Python_If-Else.py index 96c9277..2bb565f 100644 --- a/Python/Introduction/Python_If-Else.py +++ b/Python/Introduction/Python_If-Else.py @@ -25,10 +25,9 @@ if N % 2 != 0: print "Weird" +elif N >= 2 and N <= 5: + print "Not Weird" +elif N >= 6 and N <= 20: + print "Weird" else: - if N >= 2 and N <= 5: - print "Not Weird" - elif N >= 6 and N <= 20: - print "Weird" - elif N > 20: - print "Not Weird" + print "Not Weird"