+ 1
The code is showing error
n = int(input()) if n in range(2,5) and n%2==0 or n>20: print("Not Weid") if n in range(6,20) and n%2==0 or n!=20: print("Weid")
4 odpowiedzi
+ 5
Actually your code is not proper indented after if condition u need to give some tabs your code don't have any logical errors
n = int(input())
if n in range(2,5) and n%2==0 or n>20:
print("Not Weid")
if n in range(6,20) and n%2==0 or n!=20:
print("Weid")
+ 3
Nisha it's ok, you just didn't indent it
n = int(input())
if n in range(2,5) and n%2==0 or n>20:
print("Not Weid")
if n in range(6,20) and n%2==0 or n!=20:
print("Weid")
+ 1
It says expected an indentad block
+ 1
Indentation is very important in python.