Advertisement
Oppaceted

def EnterMatrixElement 2

Mar 18th, 2024
615
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. def EnterMatrixElement (A: list, i: int, j: int) -> None:
  2.     for el_i in range(len(A)):
  3.         print ("( ", end="")
  4.         for el_j in range(len(a[i])):
  5.             print( "X " if (el_i == i and el_j == j) else A[el_i][el_j] , end="")
  6.         print (")")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement