Advertisement Remove all ads
Advertisement Remove all ads
Advertisement Remove all ads
MCQ
Fill in the Blanks
Pick the correct one to execute the given statement successfully.
if ______ : print(x, " is a leap year")
Options
x%2=0
x%4==0
x/4=0
x%4=0
Advertisement Remove all ads
Solution
if x%4==0 : print(x, " is a leap year")
Concept: Introduction to Python Functions
Is there an error in this question or solution?