what's the command for (cd ..) in python

2011-09-09 Thread kaustubh joshi
Hello friends, How do we carry out the command "*cd ..*" in python? My problem is : I have a set of folders say m=1,2,3,4. In each of these folders, I have subfolders with common name say m_5,m_6,m_7,m_8. In each of these subfolder, there is a file which I have edit.

reg: playing with the list

2011-06-24 Thread kaustubh joshi
Hey all, I am new here and new to python too. In general new to programming . I was working on aproblem. and need some help. I have a list of numbers say [2,3,5,6,10,15] which all divide number 30. Now i have to reduce this list to the numbers which are prime in number. i.e. [2,3,5] can somebody su