Please enable JavaScript to use CodeHS

Introduction to Python Programming Glossary

Flashcards

Course:

Module:

Lesson:

Search:

File I/O (Input/Output) General

The process of reading information from and writing information to files.

File JavaScript

A collection of data or information stored on a computer. It can be a document, a picture, or any other type of information.

Input JavaScript

Any data or information that is received or entered into a computer system, such as typing on a keyboard or reading from a file.

Output General

The result or information produced by a computer system, such as displaying text on a screen or saving data to a file.

Text file General

A type of file that contains plain, readable text without any special formatting.

File Format JavaScript

The specific way in which data is organized and stored within a file. It determines how the file can be read or processed by different software programs.

File Extension General

A set of characters at the end of a file name that indicates the file type or format.

File input JavaScript

The process of receiving or reading data from a file into a computer program for further processing or use.

File output JavaScript

The process of sending or writing data from a computer program to a file for storage or future use.

Read mode Python

A file access mode ("r") that allows reading the contents of a file but does not permit modifications.

open() Python

The action of establishing a connection between a file and a program to perform read or write operations on the file.

close() Python

The action of terminating the connection between a file and a program after completing read or write operations.

read() Python

A method used to read the contents of a file. It reads the entire file or a specified number of characters and returns them as a string.

readline() Python

A method used to read a single line from a file. It returns the line as a string, including the newline character at the end.

End-of-file (EOF) JavaScript

The condition indicating that the end of a file has been reached

Newline character Python

A special character that represents the end of a line within a text file. In Python, the newline character is represented as \n.

readlines() JavaScript

A method used to read multiple lines from a file and return them as a list, where each line is represented as an element in the list.

File write JavaScript

The process of writing data or text to a file.

Overwrite General

The action of replacing the existing content of a file with new data.

Append General

The action of adding new data or text to the end of an existing file.

File mode General

A parameter used when opening a file to specify the intended operation (e.g., read, write, append).

File pointer General

A marker or reference that indicates the current position within a file.

`seek()` Python

A method used to move the file pointer to a specified location within a file.

File position General

The offset or index that represents the current position of the file pointer within a file.

Reading operations General

Actions performed to extract data or content from a file.

Writing operations General

Actions performed to modify or add data to a file.