How can i get the expected result? Note i dont know the length of first list. Every inner list inside the main list has the same length(this case its 3).
arr = [[1, 'ok', 3.1],
[4, 'done', 4.5],
[3, 'hola', 0.3],
[23, 'mew', 45.7]]
Expected Output :
# [[1, 'ok', 3.1],
# [[1, 'ok', 4.5],
# [1, 'ok', 0.3],
# [1, 'ok', 45.7],
# [1, 'done', 3.1],
# [1, 'done', 0.3],
# [1, 'done', 45.7],
# [1, 'hola', 3.1],
# [1, 'hola', 4.5],
# [1, 'hola', 45.7],
# ...........
# ...........
# [[3, 'ok', 3.1],
# [[3, 'ok', 4.5],
# [3, 'ok', 0.3],
# [3, 'ok', 45.7],
# SO ON