I am getting compilation error in if -else program in python .The code is written in Python 3, can anyone help me
n = int(input().strip())
if N % 2 != 0:
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"
##if else problem in python 3
Aucun commentaire:
Enregistrer un commentaire