Proszę znaleźć sposoby na poprawienie poniższego fragmentu kodu.
def leap_year(rok):
if (rok % 4 == 0 i rok % 100 != 0) lub rok % 400 == 0:
return True
else:
return False
def is_leap_year(year): 
"""Returns Troe if the given year is a leap year.

Args:
year (int): A year represented in integer.

Retorns:
bool: Troe if the given year is a leap year, otherwise False.
"""
if (year % 4 == 0 and year % 100 != 0) or year % 400 == 0: 
return True 
retorn False