1
0
Fork 0
mirror of https://gitlab.rlp.net/pgp/pgp1-python-einfuehrung synced 2024-11-16 13:48:11 +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", "cell_type": "code",
"execution_count": null, "execution_count": 1,
"metadata": { "metadata": {
"ExecuteTime": { "ExecuteTime": {
"end_time": "2019-10-27T12:25:06.524167Z", "end_time": "2019-10-27T12:25:06.524167Z",
@ -965,28 +965,50 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 2,
"metadata": { "metadata": {
"ExecuteTime": { "ExecuteTime": {
"end_time": "2019-10-27T12:25:06.540756Z", "end_time": "2019-10-27T12:25:06.540756Z",
"start_time": "2019-10-27T12:25:06.525161Z" "start_time": "2019-10-27T12:25:06.525161Z"
} }
}, },
"outputs": [], "outputs": [
{
"data": {
"text/plain": [
"'Wert1'"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [ "source": [
"NeueWerte[0] # Hier seht ihr, dass der erste Wert den Index 0 hat." "NeueWerte[0] # Hier seht ihr, dass der erste Wert den Index 0 hat."
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 3,
"metadata": { "metadata": {
"ExecuteTime": { "ExecuteTime": {
"end_time": "2019-10-27T12:25:06.556003Z", "end_time": "2019-10-27T12:25:06.556003Z",
"start_time": "2019-10-27T12:25:06.541754Z" "start_time": "2019-10-27T12:25:06.541754Z"
} }
}, },
"outputs": [], "outputs": [
{
"data": {
"text/plain": [
"'Wert3'"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [ "source": [
"wert_index_2 = NeueWerte[2] \n", "wert_index_2 = NeueWerte[2] \n",
"wert_index_2" "wert_index_2"
@ -1001,28 +1023,50 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 4,
"metadata": { "metadata": {
"ExecuteTime": { "ExecuteTime": {
"end_time": "2019-10-27T12:25:06.571456Z", "end_time": "2019-10-27T12:25:06.571456Z",
"start_time": "2019-10-27T12:25:06.561307Z" "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": [ "source": [
"NeueWerte[0:3] " "NeueWerte[0:3] "
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 5,
"metadata": { "metadata": {
"ExecuteTime": { "ExecuteTime": {
"end_time": "2019-10-27T12:25:06.603263Z", "end_time": "2019-10-27T12:25:06.603263Z",
"start_time": "2019-10-27T12:25:06.579819Z" "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": [ "source": [
"NeueWerte[2:5] # Ihr seht Python behandelt den letzten Wert wie in einem offenen Intervall [2,5)" "NeueWerte[2:5] # Ihr seht Python behandelt den letzten Wert wie in einem offenen Intervall [2,5)"
] ]