Python - Standard Library Usage
You want to create a program that reads a text file and counts how many lines contain the word 'error'. Which standard library module would help you open and read the file easily?
io module provides tools to open and read files easily in Python.os handles operating system tasks, sys deals with system-specific parameters, and re is for regular expressions, not file reading.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions