1990 % 100 will do the trick.
(It %is a modular operator and returns the rest of the division, here 1990 = 19 * 100 + 90.)
Added after the answer was accepted:
If you need something in common, try the following:
def GetIntegerSlice(i, n, m):
# return nth to mth digit of i (as int)
l = math.floor(math.log10(i)) + 1
return i / int(pow(10, l - m)) % int(pow(10, m - n + 1))
It will return the nth digit i (as an int), i.e.
>>> GetIntegerSlice(123456, 3, 4)
34
Not sure if this is an improvement over your suggestion, but it doesn't rely on string operations and it was interesting to write.
(: int ( int ) .)