13 lines
140 B
Python
13 lines
140 B
Python
|
# basic list functionality
|
||
|
x = [1, 2, 3 * 4]
|
||
|
print(x)
|
||
|
x[0] = 4
|
||
|
print(x)
|
||
|
x[1] += -4
|
||
|
print(x)
|
||
|
x.append(5)
|
||
|
print(x)
|
||
|
f = x.append
|
||
|
f(4)
|
||
|
print(x)
|