Proszę napisać funkcję, która przelicza rok z kalendarza gregoriańskiego na kalendarz Majów.
def mayan_calendar(year):
base_date = 1518 #representation of Dec 21, 2012 in Gregorian calendar
days_in_year = 365 #days in a year
cycles_in_year = 5 #Mayan calendar has 5 cycles of 260 days per year
diff = year - base_date 
mayan_year = diff*cycles_in_year
return mayan_year