3 Answers
+ 1
I hope this is the question:
ā¤ā¢ā šš¢š¢ššØ šš”šš²šš„ āā¢ā¤
Here's my explanation:
def even(x):
if x%2 ==0:
print("Yes")
else:
print("No")
"def" defines a function and this function is named as "even" which will take 1 argument named temporarily as "x" in defining a function.
Now, this function will check whether the argument given is even or not by simply dividing it by 2.(As you know, that even numbers are divisible by 2).
If it's divided by 2(or it's even) it will print "Yes" and if it's not divided by 2 (if it's odd)
then, it will print "No".
Please don't ask like this.
You should give the question and then we'll help you easily.