anonymous
  • anonymous
ps10 prob 4: the class Hand assigns a var self.initialSize. I want to use this variable in my class ComputerPlayer but I am not sure of the syntax on how to access it.
MIT 6.00 Intro Computer Science (OCW)
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
schrodinger
  • schrodinger
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
Hand.initialSize http://pastebin.com/QiX6Z9BC like that?
anonymous
  • anonymous
That gives the following error message File "C:\Python27\ps10 prob 4", line 254, in pickBestWord n=Hand.initialSize AttributeError: type object 'Hand' has no attribute 'initialSize'
anonymous
  • anonymous
well.. we can't really know how you are trying to use it unless you post your code or even just a simplified version showing what you are trying to do. have you read section nine of the tutorial? http://docs.python.org/tutorial/classes.html

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

eSpeX
  • eSpeX
Well that error indicates that the class "Hand" does not have an "initialSize" variable, therefore you cannot assign it a value since it does not exist.

Looking for something else?

Not the answer you are looking for? Search for more explanations.