Level 05: one-dimension arrays and lists 0 of 9 activities solved
  1. 1. RPG inventory Not yet solved
  2. 2. Search for life Not yet solved
  3. 3. Two-dice pig Not yet solved
  4. 4. Random name generator Not yet solved
  5. 5. Cup draw Not yet solved
  6. 6. Feud Not yet solved
  7. 7. Darts Not yet solved
  8. 8. Cut the deck Not yet solved
  9. 9. London underground Not yet solved
Next series Level 06: count controlled iterations and scope
Level 05: one-dimension arrays and lists

8. Cut the deck

Sign in to hand in your solution and get feedback.

# Cut the deck program # ------------------------- # Import libraries # ------------------------- # ------------------------- # Subprograms # ------------------------- # ------------------------- # Main program # ------------------------- # The value order of the cards for reference cards = ["6C", "7C", "8C", "9C", "10C", "JC", "QC", "KC", "AC", "6D", "7D", "8D", "9D", "10D", "JD", "QD", "KD", "AD", "6H", "7H", "8H", "9H", "10H", "JH", "QH", "KH", "AH", "6S", "7S", "8S", "9S", "10S", "JS", "QS", "KS", "AS"]