Advertisement
sowamaciej

Untitled

Nov 28th, 2020
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. rows_item = max(result, key=lambda item: item[0] + item[2][0])
  2. cols_item = max(result, key=lambda item: item[1] + item[2][1])
  3.  
  4. rows = rows_item[0] + rows_item[2][0]
  5. cols = cols_item[1] + cols_item[2][1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement