print("\n\tIndia population list in year wise")
N=int(input("Enter the no.of years (to recursion):"))
def tri_recursion(k):
a=2021;a1=1393409038;a2=0.97
b=2020;b1=1380004385;b2=0.99
c=2019;c1=1366417754;c2=1.02
d=2018;d1=1352642280;d2=1.04
e=2017;e1=1338676785;e2=1.07
f=2016;f1=1324517249;f2=1.10
g=2015;g1=1310152403;g2=1.12
h=2014;h1=1295600772;h2=1.15
i=2013;i1=1280842125;i2=1.19
j=2012;j1=1265780247;j2=1.24
k0=2011;k1=1250287943;k2=1.30
l=2010;l1=1234281170;l2=1.36
m=2009;m1=1217726215;m2=1.42
n=2008;n1=1200669765;n2=1.48
o=2007;o1=1183209472;o2=1.52
p=2006;p1=1165486291;p2=1.56
q=2005;q1=1147609927;q2=1.59
r=2004;r1=1129623456;r2=1.63
s=2003;s1=1111523144;s2=1.67
t=2002;t1=1093317189;t2=1.70
u=2001;u1=1075000085;u2=1.74
v=2000;v1=1056575549;v2=1.78
if(k > 0):
result = k + tri_recursion(k - 1)
while True:
if result==1:
print("\n\tfor pervious years:")
print("\tYear=",b)
print("\tPopulation=",b1)
print("\tGrowth rate",b2)
break
elif result==3:
print("\n\tYear=",c)
print("\tPopulation=",c1)
print("\tGrowth rate",c2)
break
elif result==6:
print("\n\tYear=",d)
print("\tPopulation=",d1)
print("\tGrowth rate",d2)
break
elif result==10:
print("\n\tYear=",e)
print("\tPopulation=",e1)
print("\tGrowth rate",e2)
break
elif result==15:
print("\n\tYear=",f)
print("\tPopulation=",f1)
print("\tGrowth rate",f2)
break
elif result==21:
print("\n\tYear=",g)
print("\tPopulation=",g1)
print("\tGrowth rate",g2)
break
elif result==28:
print("\n\tYear=",h)
print("\tPopulation=",h1)
print("\tGrowth rate",h2)
break
elif result==36:
print("\n\tYear=",i)
print("\tPopulation=",i1)
print("\tGrowth rate",i2)
break
elif result==45:
print("\n\tYear=",j)
print("\tPopulation=",j1)
print("\tGrowth rate",j2)
break
elif result==55:
print("\n\tYear=",k0)
print("\tPopulation=",k1)
print("\tGrowth rate",k2)
break
elif result==66:
print("\n\tYear=",l)
print("\tPopulation=",l1)
print("\tGrowth rate",l2)
break
elif result==78:
print("\n\tYear=",m)
print("\tPopulation=",m1)
print("\tGrowth rate",m2)
break
elif result==91:
print("\n\tYear=",n)
print("\tPopulation=",n1)
print("\tGrowth rate",n2)
break
elif result==105:
print("\n\tYear=",o)
print("\tPopulation=",o1)
print("\tGrowth rate",o2)
break
elif result==120:
print("\n\tYear=",p)
print("\tPopulation=",p1)
print("\tGrowth rate",p2)
break
elif result==136:
print("\n\tYear=",q)
print("\tPopulation=",q1)
print("\tGrowth rate",q2)
break
elif result==153:
print("\n\tYear=",r)
print("\tPopulation=",r1)
print("\tGrowth rate",r2)
break
elif result==171:
print("\n\tYear=",s)
print("\tPopulation=",s1)
print("\tGrowth rate",s2)
break
elif result==190:
print("\n\tYear=",t)
print("\tPopulation=",t1)
print("\tGrowth rate",t2)
break
elif result==210:
print("\n\tYear=",u)
print("\tPopulation=",u1)
print("\tGrowth rate",u2)
break
elif result==231:
print("\n\tYear=",v)
print("\tPopulation=",v1)
print("\tGrowth rate",v2)
break
else:
result=0
if result==0:
print("\n\tpopulation for this year")
print("\tYear=",a)
print("\tPopulation=",a1)
print("\tGrowth rate",a2)
return result
tri_recursion(N)