<prompt> Theha tšebetso ho hlahloba hore na selemo se fanoeng ke selemo sa leap.nan  <response>: Instruction in English: Create a function to check if a given year is a leap year. . Response in English: Sure! Here is a Python function that checks if a given year is a leap year:pythondef is_leap_yearyear: Function to check if a given year is a leap year. if year 400 0: return True if year 100 0: return False if year 4 0: return True return FalseTo use this function, you can call it with a year as the argument, and it will return True if the year is a leap year and False otherwise. For example:pythonis_leap_year2020 Trueis_leap_year2021 FalseThis function works by checking if the year is divisible by 400, 100, or 4, following the rules for leap years. If a year is divisible by 400, it is a leap year. If it is divisible by 100, it is not a leap year, unless it is also divisible by 400. And if it is divisible by 4, it is a leap year, unless it is divisible by 100. These rules ensure that leap years occur every four years, except for years that are divisible by 100 but not 400, which are skipped to keep the calendar in sync with the astronomical seasons. . Response in Sesotho: Ehlile! Mona ke tsebetso ea Python e hlahlobang hore na selemo se fanoeng ke selemo sa leap: python def is_leap_yearyear: Mosebetsi oa ho hlahloba hore na selemo se fanoeng ke selemo sa leap. haeba selemo 400 0: kgutlisetsa Nnete haeba selemo 100 0: kgutlisa E fosahetse haeba selemo 4 0: kgutlisa Pusetso ya nnete E fosa Ho sebedisa tshebetso ena, o ka e bitsa ka selemo e le ngangisano, mme e tla kgutla Nete haeba selemo e le selemo se tlokomang me Mahata ho seng joalo. Mohlala: python is_leap_year2020 True is_leap_year2021 False Mosebetsi ona o sebetsa ka ho lekola hore na selemo se aroloa ka 400, 100, kapa 4, ho latela melao ea lilemo tse tlolang. Haeba selemo se aroloa ka 400, ke selemo sa leap. Haeba e aroloa ka 100, ha se selemo sa leap, ntle le haeba e boetse e aroloa ka 400. Me haeba e aroloa ka 4, ke selemo sa leap, ntle le haeba e aroloa ka 100. Melao ena e tiisa hore leap years e etsahala. lilemo tse ling le tse ling tse nè, ntle le lilemo tse arohanngoa ka 100 empa eseng 400, tse tlōloang ho boloka almanaka e lumellana le linako tsa selemo tsa linaleli. 