daily pastebin goal
94%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. frau = ['Johana','Gretta','Zelda', 'Litgard','Margaret','Helma']
  2.    
  3. new_list = frau[:3].extend(['Abdul','Madjid','Zahir']).extend(frau[3:])
  4.    
  5. new_list = frau[:3]
  6. new_list.extend(['Abdul','Madjid','Zahir'])
  7. new_list.extend(frau[3:])
  8. print(new_list) #['Johana','Gretta','Zelda','Abdul','Madjid','Zahir','Litgard',
  9. 'Margaret','Helma']
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