Re: [Tutor] Python OOP question

2016-04-03 Thread khalil zakaria Zemmoura
Hi, Other_hand seems to be a tuple object which is immutable (unchangeable) so you can't alter it. By the way, what other_hand is supposed to be? A variable that you declared as tuple? An instance of a class? As other people said to you, we can only guess because we don't see where "other_hand"

Re: [Tutor] Python OOP question

2016-04-02 Thread Alan Gauld
On 02/04/16 22:46, Eric Enoch wrote: > of BJ player is ultimately BJ hand. I am now getting an error when calling > a method to add a card to that hand. Below is where the error o Unfortunately you don't show us the actual code where you call that method, nor do you show us the actual error (in f

Re: [Tutor] Python OOP question

2016-04-02 Thread Ben Finney
Eric Enoch writes: > This is my first non-MATLAB programming language so I am having some > trouble with object-oriented programming. Welcome! Thanks for learning Python. > Specifically, I am working on a program that simulates a blackjack > game. It was functioning but I have tried adding some

[Tutor] Python OOP question

2016-04-02 Thread Eric Enoch
This is my first non-MATLAB programming language so I am having some trouble with object-oriented programming. Specifically, I am working on a program that simulates a blackjack game. It was functioning but I have tried adding some new functionality in allowing players to make bets To surmise, BJ