Advertisement
TristanSld

append method in lists

Jan 8th, 2014
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement