+ 1

How do we pass a multidimensional array as an argument in python3 functions?

5th Oct 2020, 7:25 AM
Shruti Kadam
Shruti Kadam - avatar
2 Respuestas
+ 6
def myFunc(arr): for i in arr: for j in i: print(j, end='') arr = [[1,2,3], [4,5,6]] myFunc(arr)
5th Oct 2020, 7:29 AM
Raj Chhatrala
Raj Chhatrala - avatar