Traceback (most recent call last):
File "C:\Users\sahib navlani\Desktop\gfh.py", line 107, in <module>
main()
File "C:\Users\sahib navlani\Desktop\gfh.py", line 98, in main
crit2.play()
File "C:\Users\sahib navlani\Desktop\gfh.py", line 34, in play
self.play -= play1
TypeError: unsupported operand type(s) for -=: 'instancemethod' and 'int'
I get this error whenever i put this code . I think this due to line self.play -= play
play1 = int(raw_input("Please enter the time for which you want to play = "))
self.play -= play1
int(self.play) -= play1. And by the way, can you show your full code?self.playmethod, so we can help you. Otherwise we're just guessing at what is wrong.