First, you can only slice on certain sequence objects, like lists and strings. You have an integer. You can still get the result you want however.
first take your number and convert it into a string:
a = 102030
str_a str(a)
then after doing this, you can use normal slice syntax, so you can do this with the start, end, step size
a = int(str_a[1::2])
# a == 0
# but str_a[1::2] == "000"
now a will be the int you want.
EDIT: you seem to have changed your question entirely so it becomes even more trivial:
a = "102030"[1::2]
You are able to 'slice' into strings, slicing syntax is seqence_type[start:end:step]
you can omit the first parameter if it starts at the first index (in this case you would get "123" instead of "000", so we can't do that) if you omit the second it goes to the end and if you omit the last parameter step size of 1 is used. In this way you can even use slicing to copy arrays/strings via
hello = "hello"
hello2 = hello[:]+"2"
print(hello2)
# "hello2"