Advertisement
Oppaceted

Untitled

Mar 15th, 2024
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. def EnterMatrixElement (M: int, N: int, i: int, j: int) -> None:
  2. for el_i in range(N):
  3. print ("( ", end="")
  4. for el_j in range(M):
  5. print( "X " if (el_i == i and el_j == j) else "* " , end="")
  6. print (")")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement