python-CSD-kursu/python-temel/artik.yil.py
2023-08-03 23:17:54 +03:00

13 lines
325 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

class Date:
def __init__(self, day, month, year):
self.day = day
self.month = month
self.year = year
@staticmethod
def is_leap_year(year):
return year % 400 == 0 or year % 4 == 0 and year % 100 != 0
result = Date.is_leap_year(2000)
print('Artık' if result else 'Artık değil')