Python File Handling Programs Important for Class 12

Python File Handling Programs 1. Text – File Programs 2. Binary – File Programs 3. CSV – File Programs (Coming Soon) Python File Handling Programs-Text File Q1. Write a program in python to replace all word “the” by another word “them” in a file “poem.txt”. Q2. Write a program in python to replace a character … Read more

150+ Best MCQ File Handling in Python Class 12

File Handling in Python Class 12 MCQ Q1. Which statement will read 5 characters from a file(file object ‘f’)? a. f.read() b. f.read(5) c. f.reads(5) d. None of the above Q2. Which function open file in python? a. open( ) b. new( ) c. Open( ) d. None of the above Q3. Processing of Text … Read more

error: Content is protected !!