Question: why am i getting these not defined errors ? In [ ]: #CARD #SUITFRANK, #VALUE In [35]: Class Card: def init_(self, suit, rank): self.suit -

why am i getting these not defined errors ? why am i getting these not defined errors ? In [ ]:

In [ ]: #CARD #SUITFRANK, #VALUE In [35]: Class Card: def init_(self, suit, rank): self.suit - suit self.rank rank def str (self): return self.rank of self.suit In [36]: two_hearts - Card("Hearts", "TO") In [37]: two hearts Out[3711 main.Card at Ox22d7b310100> In [38]: print(two_hearts) Two of Hearts In 1391 two hearts.sults AttributeError Traceback (most recent call last) in codule - 1 two hearts.sults Attributerror: 'card' object has no attribute 'sults Ie 1141 two heart rank Traceback (most recent call last) cipython-input- dado o in codules - 1 heart rank Narrort name 'two heart is not defined

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!