matching #11

Open
elenapa wants to merge 3 commits from elenapa/2025-plovdiv-data:matching into main
2 changed files with 1284 additions and 45 deletions

View file

@ -27,7 +27,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 2, "execution_count": 1,
"id": "cf05b9c4", "id": "cf05b9c4",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
@ -36,9 +36,9 @@
"output_type": "stream", "output_type": "stream",
"text": [ "text": [
"-- Deck 1: --\n", "-- Deck 1: --\n",
" ['The Lovers', 'Temperance', 'The Emperor', 'The Sun', 'The Fool', 'The Chariot', 'Death', 'Strength', 'Justice', 'The Star', 'Judgement', 'The World', 'The Tower', 'The Hanged Man', 'The Empress', 'The Hermit', 'The Devil', 'The High Priestess', 'The Moon', 'The Hierophant', 'Wheel of Fortune', 'The Magician']\n", " ['The Star', 'Justice', 'The Hanged Man', 'The Magician', 'The Hierophant', 'The High Priestess', 'The Chariot', 'The Emperor', 'The Fool', 'The Tower', 'The Devil', 'Strength', 'Judgement', 'The Moon', 'The Empress', 'The World', 'Wheel of Fortune', 'Death', 'The Lovers', 'The Sun', 'Temperance', 'The Hermit']\n",
"-- Deck 2: --\n", "-- Deck 2: --\n",
" ['The Fool', 'Death', 'The Hermit', 'Strength', 'The Moon', 'Wheel of Fortune', 'Judgement', 'The Lovers', 'The Star', 'The Hanged Man', 'The Empress', 'The Emperor', 'The Magician', 'The Tower', 'The Hierophant', 'The Chariot', 'The High Priestess', 'Temperance', 'The World', 'The Devil', 'The Sun', 'Justice']\n" " ['The Lovers', 'The Chariot', 'Strength', 'The High Priestess', 'The Hermit', 'Justice', 'The Fool', 'Death', 'The Emperor', 'The Devil', 'The Star', 'The Sun', 'Judgement', 'The Hanged Man', 'The Hierophant', 'Wheel of Fortune', 'The Moon', 'The Magician', 'The Empress', 'Temperance', 'The Tower', 'The World']\n"
] ]
} }
], ],
@ -69,19 +69,28 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 11,
"id": "48eb31e2",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "509dda71", "id": "509dda71",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [
"source": [] {
"name": "stdout",
"output_type": "stream",
"text": [
"{(15, 21), (11, 2), (8, 6), (10, 9), (9, 20), (12, 12), (20, 19), (4, 14), (5, 3), (14, 18), (19, 11), (0, 10), (1, 5), (6, 1), (18, 0), (13, 16), (2, 13), (16, 15), (17, 7), (3, 17), (21, 4), (7, 8)}\n"
]
}
],
"source": [
" deck1_dict = {key:value for key,value in zip(deck1, list(range(len(deck1))))}\n",
" deck2_dict = {key:value for key,value in zip(deck2, list(range(len(deck1))))}\n",
"result = set()\n",
"for card in tarot_cards:\n",
" result.add((deck1_dict[card], deck2_dict[card]))\n",
"\n",
"print(result)\n",
" "
]
} }
], ],
"metadata": { "metadata": {
@ -100,7 +109,7 @@
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.11.5" "version": "3.13.6"
} }
}, },
"nbformat": 4, "nbformat": 4,

File diff suppressed because it is too large Load diff