iterating over 2d array python
x = [ ['0,0', '0,1'], ['1,0', '1,1'], ['2,0', '2,1'] ]
for i in range(len(x)):
for j in range(len(x[i])):
print(x[i][j])
iterating over 2d array python
x = [ ['0,0', '0,1'], ['1,0', '1,1'], ['2,0', '2,1'] ]
for i in range(len(x)):
for j in range(len(x[i])):
print(x[i][j])
loop over twodimensional array python
array = [
[2, 4, 5, 6],
[6, 5, 99],
[849, 33, 7, 7]
]
for i in array:
for j in i:
print(j, end=", ")
# 2, 4, 5, 6, 6, 5, 99, 849, 33, 7, 7,
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us