I'm stuck with my python learning. I was developing an application which consist of a few modules and I had no issues. After few days of break I returned back to it but any new method I add to my app is no longer visible, here is an error: (AttributeError: Hand instance has no attribute 'calculate')
This is not true of course as the Hand object has this new method and I can prove it by doing everything in console (it works) However when I do this in my app files it is not picked by the compiler.
What is the problem ?
OK her is a snippet causing issues:
class Atrifacts:
...
def calculate(self):
for i in range(len(self.cards)):
self.value += hand.cards[i].getRankIndex()
return self.value
when I try to use it I have an error mentioned above about missing attribute