CBSE Class 11 Computer Science – Dictionaries and File Handling

Previous Chapter Next Chapter

Study Materials

11th

11th - Computer Science

Dictionaries and File Handling

Chapter Overview

This chapter covers two crucial concepts in Python—Dictionaries and File Handling. Dictionaries store data in key-value pairs and provide fast lookups. File handling enables reading from and writing to files for persistent data storage. Together, they offer powerful tools for managing and manipulating structured data.

Important Keywords

  • Dictionary: A mutable, unordered collection of key-value pairs.
  • Key: The unique identifier for each item in a dictionary.
  • Value: The data associated with a key in a dictionary.
  • File: A named location on disk to store related information.
  • Read Mode ("r"): Opens a file for reading.
  • Write Mode ("w"): Opens a file for writing, overwriting existing content.
  • Append Mode ("a"): Opens a file to append new content without erasing existing data.

Detailed Notes

to view full chapter (Dictionaries and File Handling - Detailed Notes) resources.