SHARE
TWEET

Untitled

a guest Jun 15th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. N = 2
  2. A = []
  3. B = []
  4. for i in range(N):
  5.     B.append(i)
  6.     A.extend(B)
  7.  
  8. print(A)
  9. print(B)
  10.      
  11. [0, 0, 1]
  12. [0, 1]
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top