data_0 = [1,2]
data_1 = [3,4,5]

data_list_biasa = [1,2,3,4]

print(f"list biasa = {data_list_biasa}")

list_2D = [data_0,data_1,6,7]

print(f"list 2D = {list_2D}")

# contoh penggunaan

peserta_0 = ["ucup",25,"Laki-laki"]
peserta_1 = ["otong",10,"Laki-laki"]
peserta_2 = ["dedeh",50,"Wanita"]

list_peserta = [peserta_0,peserta_1,peserta_2]

print(f"peserta = {list_peserta}")

for peserta in list_peserta:
	print(f"nama\t: {peserta[0]}")
	print(f"umur\t: {peserta[1]}")
	print(f"gender\t: {peserta[2]}\n")


# dengan reference

list_copy = list_peserta.copy();
print(f"peserta = {list_copy}")
peserta_0[0] = "michael"
print(f"peserta = {list_copy}")
print(f"peserta = {list_peserta}")


e0f8588f66a94f5c5a8f1975ba44f5a6c2d9fcea
<mask token>

<mask token>
print(f'list biasa = {data_list_biasa}')
<mask token>
print(f'list 2D = {list_2D}')
<mask token>
print(f'peserta = {list_peserta}')
for peserta in list_peserta:
    print(f'nama\t: {peserta[0]}')
    print(f'umur\t: {peserta[1]}')
    print(f'gender\t: {peserta[2]}\n')
<mask token>
print(f'peserta = {list_copy}')
<mask token>
print(f'peserta = {list_copy}')
print(f'peserta = {list_peserta}')

data_0 = [1, 2]
data_1 = [3, 4, 5]
data_list_biasa = [1, 2, 3, 4]
print(f'list biasa = {data_list_biasa}')
list_2D = [data_0, data_1, 6, 7]
print(f'list 2D = {list_2D}')
peserta_0 = ['ucup', 25, 'Laki-laki']
peserta_1 = ['otong', 10, 'Laki-laki']
peserta_2 = ['dedeh', 50, 'Wanita']
list_peserta = [peserta_0, peserta_1, peserta_2]
print(f'peserta = {list_peserta}')
for peserta in list_peserta:
    print(f'nama\t: {peserta[0]}')
    print(f'umur\t: {peserta[1]}')
    print(f'gender\t: {peserta[2]}\n')
list_copy = list_peserta.copy()
print(f'peserta = {list_copy}')
peserta_0[0] = 'michael'
print(f'peserta = {list_copy}')
print(f'peserta = {list_peserta}')

data_0 = [1,2]
data_1 = [3,4,5]

data_list_biasa = [1,2,3,4]

print(f"list biasa = {data_list_biasa}")

list_2D = [data_0,data_1,6,7]

print(f"list 2D = {list_2D}")

# contoh penggunaan

peserta_0 = ["ucup",25,"Laki-laki"]
peserta_1 = ["otong",10,"Laki-laki"]
peserta_2 = ["dedeh",50,"Wanita"]

list_peserta = [peserta_0,peserta_1,peserta_2]

print(f"peserta = {list_peserta}")

for peserta in list_peserta:
	print(f"nama\t: {peserta[0]}")
	print(f"umur\t: {peserta[1]}")
	print(f"gender\t: {peserta[2]}\n")


# dengan reference

list_copy = list_peserta.copy();
print(f"peserta = {list_copy}")
peserta_0[0] = "michael"
print(f"peserta = {list_copy}")
print(f"peserta = {list_peserta}")

