Python Forum
Playing Card Sorting - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: Playing Card Sorting (/thread-8074.html)



Playing Card Sorting - ness828 - Feb-05-2018

Hello, I'm working on making a standard playing card sorter for one of my classes. I need help writing the code. I don't fully understand Python code just yet. Can anyone write me a simple code that can recognize a standard playing card face to put it in a certain place. If so that would be great.


RE: Playing Card Sorting - Larz60+ - Feb-05-2018

Show what you've attempted so far, and where you are having difficulty.


RE: Playing Card Sorting - ness828 - Feb-05-2018

I'm having trouble starting it is the problem. I'm used to using batch, but it doesn't do what I need it to do.


RE: Playing Card Sorting - Larz60+ - Feb-05-2018

We will help you, we will not write it for you,
just try, and show what you've got.


RE: Playing Card Sorting - sparkz_alot - Feb-05-2018

You could start by creating a variable that will hold that will hold the 52 cards in a random order. Then you need to sort the variable and then (I presume) print the result. We don't know what tools you are allowed to use or not use. What you need is within Python's built-ins, so no third party libraries need to be installed.