Computer Science, asked by yayabhaskar21, 4 months ago

create a program in Python to find a 5 year is the leap year or not a leap year is a leap year if it is divisible by 4 ​

Answers

Answered by allysia
9

Answer:

Here you go,

\\\tt year=int(in put("Enter\ a\ leap\ year: ") )\\\tt if \ year\%4==0: \\\tt {\qquad print(" \ It's \ a\ leap\ year.") } \\\tt else:\\\tt   {\qquad  print( "It \ 's\  not \ leap \ year.")}

Answered by yuktijoshi
2

In Python, calendar. isleap() is a function provided in calendar module for simple text calendars. isleap() method is used to get value True if the year is a leap year, otherwise gives False. ... Returns: Returns True if the year is a leap year, otherwise False

Similar questions