I want my list data to be read as its data entries rather than the position it is in the data.
For example ['A', '2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K'] Should be read as it says
But instead it reads the data as 0, 1, 2, 3, 4, 5.
How do I make it say the suitenumbers instead.
Ive played around with it for a fair bit trying to rename the data to produce something different but I dont really know what Im doing here.
suitenumbers = ['A', '2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K']
numcards_stack6 = randint(1, 9)
for suitenumbers in range(numcards_stack6):
pencolor('black')
write(suitenumbers, font=("Arial", 20, 'normal', 'bold'))
forward(50)
It should draw back A 2 3 4 5 6 7 8
Aucun commentaire:
Enregistrer un commentaire