Python Scenario Based Interview Questions
Question: Suppose you have a 10gb textfile. Write the function to read the file line by line without loading the entire file into memory.Answer: def read_large_file(file_path): with open(file_path, ‘r’, encoding=’utf-8′)…
Read more