Python/data_structures/arrays.py
2018-11-03 12:08:13 -08:00

4 lines
82 B
Python

arr = [10, 20, 30, 40]
arr[1] = 30 # set element 1 (20) of array to 30
print(arr)