Author | Message |
---|---|
Miro138
Posts: 22
|
Posted 14:43 Sep 30, 2016 |
If you have python 3.x, instead of 2.x, it seems like you need to use input() instead of the suggested raw_input() as it doesn't work with the former. Didn't see it mentioned on the assignment. Trying to make sure its not just my version of python. Used this as reference: http://stackoverflow.com/questions/3345202/python-getting-user-input |
msargent
Posts: 519
|
Posted 14:50 Sep 30, 2016 |
Thanks for noticing. I updated the homework. |
ykim85
Posts: 26
|
Posted 16:46 Sep 30, 2016 |
are we allowed to use python 2? i was looking into the shuffle function in the random library and for python 3, the shuffle doesn't work unless it's placed in a list. so i had to type cast it deckofcards = {stuff....} a = list(deckofcards) and then randomize a with shuffle |
msargent
Posts: 519
|
Posted 10:42 Oct 01, 2016 |
You should store your "cards" (integers) in a list. Use the map (a separate data structure) just to get a string representation, like we did in the AceyDeucey game. |