28 lines
423 B
Plaintext
28 lines
423 B
Plaintext
|
{
|
||
|
"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
|
||
|
}
|