I'm trying to create a python cards game (a Brazilian cards game). But when I try to print some values (the cards played) it returns the following error:
Traceback (most recent call last):
File "<pyshell#16>", line 1, in <module>
play()
File "C:\Documents and Settings\Terminal\Desktop\Truco.py", line 71, in play
print "You played %a. The computer played %b and %c" % (player_card1, computer_card1, computer_card2)
ValueError: unsupported format character 'a' (0x61) at index 12
player_card1, computer_card1, computer_card2 are numbers from a list...
example:
from random import choice as rc
cards = [1, 2, ...]
player = []
player.append(rc(cards))
player.append(rc(cards))
player.append(rc(cards))
player_card1 = player[0]