
complete unit 2 explanation | python programming | python | files, modules, exceptions, Btech python
NS lectures · 37,3 N lượt xem · 27 thg 3, 2023
Mô tả
MY INSTAGRAM ID:
/ ns.lectures
PYTHON PROGRAMMING COMPLETE UNIT 2 :
FILES TOPIC
00:42 - file handling
01:11 - file modes (x, r, w, a, r+, w+, a+, rb, wb, ab, rb+, wb+, ab+ )
03:24 - file built in function(open) and built in methods( read(), close(), readline(), readlines() , append() )
05:58 - python programs to create, read, write, append and delete a file
15:49 - seek() and tell() methods
19:40 - python program to copy text from one file to another file
22:11 - file object attributes ( file, mode , closed )
23:39 - truncate(), flush(), split() methods
26:40 - data persistence
28:24 - persistent storage modules- pickle module
32:56 - marshal module
34:56 - shelve module
37:23 - dbm package
39:43 - command line arguments
44:54 - standard files ( stdin, stdout, stderr )
49:29 - file execution in python
51:14 - sys module
51:48 - file system ( or directory) , os modules (mkdir, chdir, rmdir..etc..)
EXCEPTIONS TOPIC:
59:08 - exception, difference between exception and error
01:01:31 - exception handling ( try block, except block, else block and finally block)
01:05:53 - raising exceptions (using raise keyword)
01:07:22 - assertions(using assert keyword)
01:09:20 - how to create exceptions ( using exception class)
01:13:05 - context management (try...finally approach and with statement approach)
01:18:25 - exc_info() function
01:21:25 - standard exceptions
01:25:30 - exceptions as strings
01:26:39 - why exceptions now?
01:27:35 - why exceptions at all?
MODULES TOPIC:
01