examples/lists/simple.py
from __future__ import print_function

x = ['abc', 'xyz', 'qqrq', 42]
print(x)         # ['abc', 'xyz', 'qqrq', 42]
print(len(x))    # 4

print(x[0])      # abc
print(x[0:1])    # ['abc']
print(x[0:2])    # ['abc', 'xyz']
print(x[1:3])    # ['xyz', 'qqrq']