TristanSld

append method in lists

Jan 8th, 2014
62
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #/usr/bin/env python
  2. #coding:utf-8-*-
  3. programlama_dilleri=["Python","Ruby","Perl"]
  4. meyveler=["kiraz","elma"]
  5. print programlama_dilleri,"\n"
  6. programlama_dilleri.append("C++")
  7. print programlama_dilleri,"\n"
  8.  
  9. meyveler.append("├žilek")
  10. print meyveler, "\n"
  11. for oge in meyveler:
  12.     print oge,"\n"
  13.  
  14. a=["Java","PHP"]
  15. for i in a:
  16.     programlama_dilleri.append(i)
  17. print programlama_dilleri
RAW Paste Data