Answer the question
In order to leave comments, you need to log in
Why does this code generate a Syntax Error?
good afternoon
Please tell me how to fix this code so that it works.
Why is there a Syntax Error?
def is_valid(w):
if int(w)<1 or int(w)>100:
return False
else:
return True
k = int(input()
print(is_valid(k))
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question