Important Questions
Important Questions
Make use of example to show opening of a file with open( ) function, reading the
contents of the file with read() and writing to files with write( ).
2. Explain join (), split () and partition ()
methods in brief.
3. Develop a program to sort the contents of a text
file and write the sorted contents into a separate text file.
4. Identify the use of shelve module in python with
example.
5. Develop Backing up a Folder into a Zip file.
Clearly mention the steps involved.
6. Explain the different parts of the file path.
7. Explain os.walk() function with example
8. Explain rjust(),ljust(),centre() with example.