MCQs > IT & Programming > Python > Output of the following Python code? def abc(): y = 2018 if (y % 4) == 0: if (y % 100) == 0: if (y % 400) == 0: print('0') else: print('1') else: print('0') else: print('1') abc()he following Python code?

def abc():

Python MCQs

What will be the correct output of the following Python code?

def abc():

y = 2018

if (y % 4) == 0:

    if (y % 100) == 0:

        if (y % 400) == 0:

            print("0")

        else:

            print("1")

    else:

        print("0")

else:

    print("1")

abc()


Answer

Correct Answer:


Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it