Advertisements
Advertisements
Question
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
MCQ
Fill in the Blanks
Advertisements
Solution
if x%4==0 : print(x, " is a leap year")
shaalaa.com
Introduction to Python Functions
Is there an error in this question or solution?
APPEARS IN
RELATED QUESTIONS
Which function is called anonymous un-named function?
How to set the limit for recursive function? Give an example.
Differentiate ceil() and floor() function?
Write a Python code to check whether a given year is a leap year or not.
What are the points to be noted while defining a function?
Explain the different types of functions with an example.
Write a Python code to find the L.C.M. of two numbers.
Explain the following built-in function.
id()
Explain the following built-in function.
round()
Explain the following built-in function.
type()
