I accidently deleted my code for is_int


#1



https://www.codecademy.com/en/courses/python-intermediate-en-rCQKw/0/3?


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


#2

have you tried resetting code?


#3

go back to the previous exercise you could do this by clicking the thing in the bottom left corner


#4

then redo the activity
this would probably be the only way


#5

That only makes the page blank, but thank you for the help regardless


#6

i will get my code that i used for it


#7

Don't. That's cheating.


#8

Honor for you!
for Honor
Bad Game.


#9

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.