Basically whenever a user gives a number of days for example 10 and the starting year is 2008 it will convert the days and add it to years so it will still be 2008, but how do i account for leap year? For example if i enter 848 from 2008 it should be 2010 but its 2011. So far what i have:
def year_checker(days, year):
convert = days // 365
year = year + convert
return year
This question is a different from some because it messes up when trying to find the days between two leap years.