I deleted my code which had worked previously in order to test the type(x) method of doing the exercise, however now I have lost my code and I was going to use it for the next exercise(digit_sum). Is there any way of getting this code back? Because Codecademy seems to have saved over it, and I can't remember what the code was because I wrote it a week ago.
Is there any way of getting code back once it is saved over?
I have made attempts, but to no avail:
def is_int(x): if x == round(x) % 1: return True else: return False