pr3/python/datentypen/tuples.ipynb

28 lines
423 B
Plaintext
Raw Normal View History

2023-06-24 11:59:29 +02:00
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"my_tuple = (1,2,3,4)\n",
"\n",
"print(my_tuple[0])\n",
"\n",
"print(my_tuple[1:3])\n",
"print(my_tuple[:3])\n",
"print(my_tuple[2:])"
]
}
],
"metadata": {
"language_info": {
"name": "python"
},
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2
}