Advertisement
VanoHa

аналог reduce

Aug 5th, 2023
1,068
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. count = 0
  2. for record in records:
  3.     count += record.value
  4.  
  5. count = sum((record.value for record in records))
  6.  
  7.  
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement