- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnested_loop.py
More file actions
Latest commit
30 lines (27 loc) · 540 Bytes
/
Copy pathnested_loop.py
File metadata and controls
30 lines (27 loc) · 540 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# for i in range(2):
# for j in range(2):
# print("i : {}, j : {}".format(i,j))
# print("")
# for i in range(3):
# print("i : {}".format(i))
# for j in range(3):
# print("j : {}".format(j))
# print("")
# Menampilkan matriks 3D
angka= [
[
[1, 3],
[3, 5]
],
[
[2, 4],
[4, 6]
]
]
foriinangka:
print("Ini i : {}".format(i))
forjini:
print("Ini j : {}".format(j))
forkinj:
print("Ini k : {}".format(k))
print("")