.. link: http://dgplug.org/summertraining/2013/posts/devyani-divs-mount-20130711-141753.html .. description: .. tags: .. date: 2013/07/11 14:17:54 .. title: Devyani-Divs mount 20130711-141753 .. slug: devyani-divs-mount-20130711-141753 Mount Assignment ================ Code in python to print the exact output as received on carrying out the 'mount' command. Explanation of the code ======================= 1.)In the program, we are initially using the open() function, to open the "/proc/mounts" file. 2.)And then, we are using a for loop to split the lines of the file one by one and then carry out the required manipulations in the file in order to get the exact output as one would have received on carrying out the mount command. 3.)Further, join() function is used to join the split strings and finally, printing the required output as desired. 5.)Lastly, we use the close() function to close the edited file. Link to the actual code file is: ''