"""Test""" BASELEVEL = 0 BASEPERK = 0 LEVELRANGE = range(30, 101) PERKRANGE = range(30, 401) for i in LEVELRANGE: BASELEVEL += pow(i+1, 0.8)-pow(i, 0.8) for i in PERKRANGE: BASEPERK += pow(80000+(200*(i+1))/10, 0.6)-pow(80000+(200*i)/10, 0.6) BASELEVEL /= len(LEVELRANGE) BASEPERK /= len(PERKRANGE) print(BASELEVEL) print(BASEPERK) print(BASEPERK/BASELEVEL)