YEAR_BEGIN = [1971,1979,1948]
YEAR_END = 2016

VAR_list = {0:'sst', 1:'precip',2:'air'}

for ivar in [i]:

    VAR = VAR_list[ivar]
    print('Variable',ivar,VAR)

    if VAR == 'precip':
        filei1 = DIR0 + VAR + '.mon.mean'+ '.nc'   
    elif VAR == 'sst':
        filei1 = DIR0 + VAR + '.mon.mean.nc'
    elif VAR == 'air':
        filei1 = DIR0 + VAR + '.mon.mean.nc'
    else:
     pass


    clim_ref_year = 1981

    if ivar = 1
        1971
    elif ivar= 2
        1979
    else:
        1948
timeskip = (clim_ref_year - YEAR_BEGIN[ivar]) * nman -1

VAR_listのループをまわしてそれぞれにYEAR_BEGINを割り振りたいのですがうまくいきません。解決案はございますか?