1 parent cfd4558 commit e1a0376Copy full SHA for e1a0376
1 file changed
05. Tuple & Lists/Simple.py
@@ -7,3 +7,7 @@
7
8
# dimensions [0] = 250 # this will give error. because tuple is immutable
9
10
+# you can reassign a tuple for e.g
11
+
12
+dimensions = (100,200)
13
+print(f"first dimension is: {dimensions[0]}")
0 commit comments