Skip to content

Commit 46a0938

Browse files
authored
Update lists.py
1 parent 8208edd commit 46a0938

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

python_sandbox_finished/lists.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
# Get a value
1111
print(fruits[1])
1212

13+
# Get the last value
14+
print(fruits[-1])
15+
16+
17+
1318
# Get length
1419
print(len(fruits))
1520

0 commit comments

Comments
 (0)