Posts by Carlos M. Santos • 51 points
2 posts
-
2
votes2
answers86
viewsQ: How to deal cards from a deck using dictionary
I have the following dictionary composed of a list of its values: baralho = { 'Paus': ['Ás',2,3,4,5,6,7,8,9,10,'Dama','Valete','Reis'] , 'Ouros': ['Ás',2,3,4,5,6,7,8,9,10,'Dama','Valete','Reis'] ,…
-
3
votes0
answers54
viewsQ: Attempt to compare values from a list in a function does not generate the expected result
I have a function that receives a list and inside it a loop of repetition in order to go through all the positions and compare the value of that particular position with the value that comes by…