Beau carnes (black jack tutorial) running errors

Hey new to the forum, I am currently running Beau Carnes tutorial for black jack, I have made it all the way to the end of the deck class to the lines where I input : deck1 = Deck()
print( . it returns this error message in the console : Traceback (most recent call last):
File “”, line 38, in
AttributeError: ‘Deck’ object has no attribute ‘cards’

I have it exact and have been on multiple revisions to move on. same version, indentation, code for code. Need help !

There’s small typo in the name of the initialize method.

For future, it’s much more easier to help if code is included in the form of text or link to the replit, instead of screens.

1 Like

oh thank you. got it!!!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.