Hello,
First of all: I'm more used to java, but at university we need to code something in python. I'm having serious problems filling a python-list with values.
for i in range(self.num_of_players) :
self.player_hands[i]=["Testcard"]
I want to fill the i-th player_hands-list with a String! Yes i declared a variable called player_hands in the classes init-method, looks like this:
self.player_hands = []
If above thing is an list, why isn't for loop doing its job ?
Im sorry: The interpreter error is: "list assignment index out of range".
And what i want to do is: Create a List for each player, which holds game-card values, like 7 or 2 or 3 etc..