You're almost there, just not quite. As noted in the comments, one issue you have in your original code is the indentation for the first except.
Once you fix this, you've then got a second issue:
>>> def get_offset():
... try:
... offset=int(input("How Much Would You Like To Offset By?\n"))
...
... except ValueError:
... while offset!=int:
... print("Please Enter An Integer!")
... offset=int(input("How Much Would You Like To Offset By?\m"))
... except ValueError
File "<stdin>", line 9
except ValueError
^
SyntaxError: invalid syntax
>>>
You're getting this issue from the second except ValueError, since there's no
try associated with it. If you fixed this, you'd then get an error because the following line references the value of offset before it's actually assigned:
while offset!=int:
If the initial attempt to convert the value entered in the input() statement fails, then no value is actually assigned to offset, which is what causes this error.
I would approach it as follows:
>>> def get_offset():
... while True:
... try:
... offset = int(input("How Much Would You Like To Offset By?\n"))
... break # Exit the loop after a valid integer has been entered.
...
... except ValueError:
... print("Please enter an integer!")
...
... return offset
...
>>> x = get_offset()
How Much Would You Like To Offset By?
5
>>> print(x)
5
>>> x = get_offset()
How Much Would You Like To Offset By?
spam
Please enter an integer!
How Much Would You Like To Offset By?
eggs
Please enter an integer!
How Much Would You Like To Offset By?
27
>>> print(x)
27
>>>
This allows you to keep querying for the offset value until a valid integer is entered.