внесены исправления в ДЗ

This commit is contained in:
Dmitry Medvedev
2026-10-09 00:17:52 +05:00
parent 4cdcdfad07
commit 5b5fb9c97f
3 changed files with 28 additions and 22 deletions
+9 -5
View File
@@ -85,7 +85,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 1,
"id": "4d883f02",
"metadata": {},
"outputs": [
@@ -93,8 +93,10 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Тебя зовут Дима Медведев.\n",
"Твой любимый предмет - физика.\n"
"Твоя визитка:\n",
"Имя: 1\n",
"Фамилия: 2\n",
"Любимый предмет: 3\n"
]
}
],
@@ -103,8 +105,10 @@
"surname = input('Какая у тебя фамилия?')\n",
"favorite_subject = input('Какой твой любимый предмет?')\n",
"\n",
"print(f'Тебя зовут {name} {surname}.')\n",
"print(f'Твой любимый предмет - {favorite_subject}.')"
"print('Твоя визитка:')\n",
"print(f'Имя: {name}')\n",
"print(f'Фамилия: {surname}')\n",
"print(f'Любимый предмет: {favorite_subject}')"
]
},
{