Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 6th, 2020 138 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from random import randint
  2.  
  3.  
  4. mtr =[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]]
  5. for i in range(4):
  6.     for j in range(4):
  7.         tmp = randint(-20, 20)
  8.         mtr[i][j] = tmp
  9.  
  10. print(mtr)
  11. for i in range(4):
  12.     for j in range(4):
  13.         print(mtr[i][j], end = " ")
  14.     print()  
  15.  
  16. max = mtr[0][0]
  17. index_max_el = (0,0)
  18. for i in range(4):
  19.     for j in range(4):
  20.         if mtr[i][j] > max:
  21.             max = mtr[i][j]
  22.             index_max_el = (i,j)
  23.  
  24. print("Индексы max_el: ", index_max_el)    
  25.  
  26. mltp = 1
  27. for i in range(4):
  28.     for j in range(4):
  29.         if j > i:
  30.             mltp *= mtr[i][j]
  31.            
  32. print("Произведение: ", mltp)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top