SHARE
TWEET

deep argument unpacking

DeaD_EyE Aug 25th, 2018 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. range1 = range(10, 20)
  2. range2 = range(20, 30)
  3. for n, (r1, r2) in enumerate(zip(range1, range2)):
  4.     print(n, r1, r2)
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