Hey all, (its probably a stupid question) I have this problem with a module i'm trying to make to use inside another program, and whenever i try and run it or import it at the IDLE main window, i get a type error, and it tells me i've got an "unbound method" which is screwing everything up. I looked it up on the net, but i still don't understand the difference between unbound and bound methods.

here is the code:

If someone could point me in the direction of something that explains the differences in an understandable way, and possibly what i can do to change the code, please let me know!Code:class PerfTest: "Tests for Perfect Squares" def __init__(self): self.number = 'Test a Number' def Test(self, number): from math import sqrt root1 = sqrt(number) if number % root1 == 0: return(number), return(" is a Perfect Square") else: return(number), return(" is not a Perfect Square")

Tweet This+ 1 thisPost To Linkedin