
a = list()
a.append(42)
a[0] ## type int

b = list()
b.append(3.14)
b.append(1.2)
b[0:2] ## type list

c = b[0::2]
c ## type list
c[0] ## type float

d = [1, 2]
d[0] ## type int

e = [42, 3.14]
e[0] ## type float|int


a = list()
a.append(42)
a[0] ## type int

b = list()
b.append(3.14)
b.append(1.2)
b[0:2] ## type list

c = b[0::2]
c ## type list
c[0] ## type float

d = [1, 2]
d[0] ## type int

e = [42, 3.14]
e[0] ## type float|int

f = []
f.append(3.14)
f[0] ## type float

Test for empty list display.