1
0
Fork 0
mirror of https://gitlab.rlp.net/pgp/pgp1-python-einfuehrung synced 2024-10-12 13:24:22 +00:00

Automatic commit by nbgitpuller

This commit is contained in:
nbgitpuller 2020-08-12 06:38:45 +00:00
parent 522b3154d5
commit ec31dc3738

View file

@ -944,7 +944,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {
"ExecuteTime": {
"end_time": "2019-10-27T12:25:06.524167Z",
@ -965,28 +965,50 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {
"ExecuteTime": {
"end_time": "2019-10-27T12:25:06.540756Z",
"start_time": "2019-10-27T12:25:06.525161Z"
}
},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"'Wert1'"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"NeueWerte[0] # Hier seht ihr, dass der erste Wert den Index 0 hat."
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 3,
"metadata": {
"ExecuteTime": {
"end_time": "2019-10-27T12:25:06.556003Z",
"start_time": "2019-10-27T12:25:06.541754Z"
}
},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"'Wert3'"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"wert_index_2 = NeueWerte[2] \n",
"wert_index_2"
@ -1001,28 +1023,50 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 4,
"metadata": {
"ExecuteTime": {
"end_time": "2019-10-27T12:25:06.571456Z",
"start_time": "2019-10-27T12:25:06.561307Z"
}
},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"['Wert1', 'Wert2', 'Wert3']"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"NeueWerte[0:3] "
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"metadata": {
"ExecuteTime": {
"end_time": "2019-10-27T12:25:06.603263Z",
"start_time": "2019-10-27T12:25:06.579819Z"
}
},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"['Wert3', 'Wert4', 'Wert5']"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"NeueWerte[2:5] # Ihr seht Python behandelt den letzten Wert wie in einem offenen Intervall [2,5)"
]