Implement slicing for lists.

This commit is contained in:
Paul Sokolovsky
2014-02-02 03:32:55 +02:00
parent 7364af2d8c
commit 13cfabd1b2
3 changed files with 14 additions and 1 deletions

View File

@@ -16,3 +16,7 @@ print(x)
x += [2, 1]
print(x)
print(x[1:])
print(x[:-1])
print(x[2:3])