Hey,
I'm having trouble with an exercise from a book, here it is;
" Write a program that reads the values for a random list of card from a file,(cards.txt) where each line in the file represents a single card with the rank and then suit seperated by a space. The rank should be an integer in the range 1 - 13 (Ace:1, King:13), while the suit should be lower case character (h, d, c, s). Sort the cards into suits ordered by rank, and print out the ordered list. Hint: sort the list first by rank, and then suit."
If anyone could give me a few pointers on how to do this exercise it would be greatly appreciated
Thanks
qwery__123