Skip to content

Commit

Permalink
8. heti anyag, régiek frissítése
Browse files Browse the repository at this point in the history
  • Loading branch information
Hatwagner F. Miklós committed May 17, 2022
1 parent eca7a36 commit e1a6a5c
Show file tree
Hide file tree
Showing 4 changed files with 1,507 additions and 39 deletions.
15 changes: 9 additions & 6 deletions Prg_alapjai,_4_előadás.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@
"base_uri": "https://localhost:8080/"
},
"id": "j-duUz8GfOaP",
"outputId": "351990ef-b778-40ce-88c1-ddb427e519bc"
"outputId": "c75cba41-2a63-4858-ad70-0678abe46bed"
},
"source": [
"lista = [42, 3.14, 'Cicamica'] # 3 elemű lista\n",
Expand All @@ -326,6 +326,8 @@
"print('Tartalma: ', lista)\n",
"lista = lista[:-len('Szerénke')] # slicing itt is használható\n",
"lista.append('Szerénke')\n",
"print('Tartalma: ', lista)\n",
"lista.insert(0, 'Lukrécia') # beszúrás a 0-s indexű elem elé\n",
"print('Tartalma: ', lista)"
],
"execution_count": null,
Expand All @@ -335,11 +337,12 @@
"name": "stdout",
"text": [
"<class 'list'>\n",
"lista azonosítója: 140056971842416\n",
"lista azonosítója: 140056971842416\n",
"lista azonosítója: 139670533922480\n",
"lista azonosítója: 139670533922480\n",
"Tartalma: ['valami', 3.14, 'Cicamica', 'Frakk']\n",
"Tartalma: ['valami', 3.14, 'Cicamica', 'Frakk', 'S', 'z', 'e', 'r', 'é', 'n', 'k', 'e']\n",
"Tartalma: ['valami', 3.14, 'Cicamica', 'Frakk', 'Szerénke']\n"
"Tartalma: ['valami', 3.14, 'Cicamica', 'Frakk', 'Szerénke']\n",
"Tartalma: ['Lukrécia', 'valami', 3.14, 'Cicamica', 'Frakk', 'Szerénke']\n"
]
}
]
Expand Down Expand Up @@ -678,7 +681,7 @@
"id": "lQIMthXULkDP",
"outputId": "623673bc-33e5-48fe-cf51-eeec5873e58e"
},
"execution_count": 1,
"execution_count": null,
"outputs": [
{
"output_type": "error",
Expand Down Expand Up @@ -706,7 +709,7 @@
"id": "zTbGAfvPLylx",
"outputId": "9a46d39b-43cf-4e55-f148-db598e210867"
},
"execution_count": 2,
"execution_count": null,
"outputs": [
{
"output_type": "stream",
Expand Down
Loading

0 comments on commit e1a6a5c

Please sign in to comment.