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
Advertisements
Solution
if x%4==0 : print(x, " is a leap year")
APPEARS IN
RELATED QUESTIONS
A named block of code that is designed to do one specific job is called ______
Which function is called anonymous un-named function?
Read the following statement and choose the correct statement.
In Python, you don’t have to mention the specific data types while defining the function.
Write the different types of functions.
How to set the limit for recursive function? Give an example.
What are the points to be noted while defining a function?
Explain the different types of functions with an example.
Explain the following built-in function.
id()
Explain the following built-in function.
chr()
Explain the following built-in function.
pow()
