salimah_utamin

jawaban 4 array

Apr 27th, 2020
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. MatA = [
  2. [2, 5, 5],
  3. [0, 2, 0],
  4. [0, 8, 6]
  5. ]
  6. MatB = [
  7. [0, 3, 2],
  8. [0, 2, 0],
  9. [1, 7, 5]
  10. ]
  11. for x in range(0, len(MatA)):
  12. for y in range(0, len(MatA[0])):
  13. print (MatA[x][y] - MatB[x][y], end=' '),
  14. print ()
Add Comment
Please, Sign In to add comment