Top 25+ Python Text File Handling (Solved) Important Questions For beginners | Assignment
Python Text File (Solved) Questions – For beginners Q1. Write a program in python to read entire content of text file (“data.txt”) Ans. f = open(“data.txt”, ‘r’) d = f.read( ) print(d) Q2. Write a program in python to read first 5 characters from the text file(“data.txt”) Ans. f = open(“data.txt”, ‘r’) d = f.read(5) … Read more