VizsgaEgy

This commit is contained in:
2024-09-21 14:23:31 +02:00
parent 361c49551f
commit cf62c07a19
2 changed files with 184 additions and 4 deletions

View File

@ -67,7 +67,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
@ -95,7 +95,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 11,
"metadata": {},
"outputs": [
{
@ -127,7 +127,10 @@
" if min == -1:\n",
" min = diff; eri = i; erj = j \n",
" else:\n",
" if diff < min: min = diff; eri = i; erj = j\n",
" if diff < min: \n",
" min = diff\n",
" eri = i\n",
" erj = j\n",
"print(f'Életkorban legközelebb állók: {eri[0]}, {erj[0]}')\n",
"print(f'{min.days} nap köztük a különbség')"
]
@ -568,7 +571,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.3"
"version": "3.12.6"
}
},
"nbformat": 4,