Is like figure, to transpose matrix
CodePudding user response:
Coordinates, in turn, they ran across
CodePudding user response:
Li=[
[1, 2, 3],
(4 and 6),
,8,9 [7]
]
For the x in the range (len (li) :
For y in range (x + 1) :
Li li [x] [y], [y] [x]=li [y] [x], li [x] [y]
For I in (li) :
Print (I)
CodePudding user response: