2nd semister Unit-2 Python notes

2nd semister Unit-2 Python notes 



Unit-II: Threading, Exception Handling and File:

Threading: 

  • Understanding threads
  • Class and threads
  • Creating Threads
  • Thread Synchronization
  • Treads Life cycle
  • Multi-threading.

Exception Handling: 

  • Error in Python program
  • exceptions
  • steps in exception handling using try
  • except
  • else and finally blocks
  • types of exceptions- built-in and user-defined exceptions
  • assert statement.

File Input Output: 

  • Types of files in Python
  • opening a file- the file opening modes closing a file
  • working with text files containing strings
  •  working with binary files
  • with statement
  • pickling and unpickling, seek() and tell() methods
  • random accessing of binary files
  • zipping and unzipping files
  • working with directories.

Post a Comment

0 Comments