1. #!/usr/bin/python 
  2.  
  3. print "++++++++++list  to tuple+++++++++++++++++++++" 
  4.  
  5. list1=['computer','apple','orange','shopping'
  6. print type(list1) 
  7. print list1 
  8.  
  9. T1=tuple(list1) 
  10. print type(T1) 
  11. print T1 
  12. print "++++++++++tuple to list++++++++++++++++++++++" 
  13.  
  14. L1=list(T1) 
  15. print type(L1) 
  16. print L1 
  17.  
  18.  
  19. print "++++++++++string to list ++++++++++++++++++++" 
  20. S1="my english teacher is kevin" 
  21. LL1=list(S1) 
  22. print LL1 
  23.  
  24. LL2=S1.split() 
  25. print LL2 
  26.  
  27. print "++++++++++list to string ++++++++++++++++++++" 
  28. L2=['uliweb','ulipad','plugs','uliwebzone'
  29. L3=['a,b,c\n','d,e,f\n'
  30.  
  31. for S2 in L2[:]: 
  32.         print type(S2),S2 
  33.  
  34. S2=str(L2) 
  35. print type(S2),S2.strip('[|]'
  36.  
  37. print L3[0].strip() 
  38. print L3[1].strip()