From d1a2885ecbb44c0297a0323c80e5081268dd7fd4 Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Thu, 21 Sep 2023 07:16:57 +0100 Subject: [PATCH] python: further notes on tuples --- .../Python/Syntax/Tuples_in_Python.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Programming_Languages/Python/Syntax/Tuples_in_Python.md b/Programming_Languages/Python/Syntax/Tuples_in_Python.md index f3f5af1..1a31652 100644 --- a/Programming_Languages/Python/Syntax/Tuples_in_Python.md +++ b/Programming_Languages/Python/Syntax/Tuples_in_Python.md @@ -6,6 +6,8 @@ tags: [python, data-structures] # Tuples in Python +TODO: Exapand tuple notes - give more use cases + Tuples are one of the main data-structures or containers in Python. Tuples are useful in cases where you want to group related data and ensure that it will not change. Tuples have the following properties: @@ -26,16 +28,9 @@ As with all containers in Python they permit any data type. ```python tup1 = (1, 3, 5, 7) -print(tup1[0]) -print(tup1[1]) print(tup1[2]) -print(tup1[3]) -""" -1 -3 -5 -7 +# 5 """ ```