Section 5.9 Glossary
Glossary Glossary
- sequence.
- An ordered collection of values where each value is identified by an integer index.
- string.
- A sequence of characters.
- list.
- A sequence of values.
- element.
- One of the values in a list (or other sequence), also called items.
- index.
- An integer value used to select an item in a sequence, such as a character in a string. In Python indices start from 0.
- slice.
- A part of a string specified by a range of indices
- concatenate.
- To join two operands end-to-end.
- immutable.
- The property of a sequence whose items cannot be changed.
- length.
- Number of characters in a string. It can be found by (len) function Example: len(βhappyβ) evaluates to 5.
- high-level language.
- A programming language like Python that is designed to be easy for humans to read and write.
- indexing(
[]). - Access a single character in a string using its position (starting from 0). Example: βThisβ[2] evaluates to βiβ.
- low-level language.
- A programming language that is designed to be easy for a computer to execute; also called machine language or assembly language.
- natural language.
- Any one of the languages that people speak that evolved naturally.
- object code.
- The output of the compiler after it translates the program.
- parse.
- To examine a program and analyze the syntactic structure.
- portability.
- A property of a program that can run on more than one kind of computer.
- print function.
- A function used in a program or script that causes the Python interpreter to display a value on its output device.
- problem solving.
- The process of formulating a problem, finding a solution, and expressing the solution.
- program.
- A sequence of instructions that specifies to a computer actions and computations to be performed.
- programming language.
- A formal notation for representing solutions.
- Python shell.
- An interactive user interface to the Python interpreter. The user of a Python shell types commands at the prompt (>>>), and presses the return key to send these commands immediately to the interpreter for processing.
- runtime error.
- An error that does not occur until the program has started to execute but that prevents the program from continuing.
- semantic error.
- An error in a program that makes it do something other than what the programmer intended.
- semantics.
- The meaning of a program.
- shell mode.
- A style of using Python where we type expressions at the command prompt, and the results are shown immediately. Contrast with source code, and see the entry under Python shell.
- source code.
- A program, stored in a file, in a high-level language before being compiled or interpreted.
- syntax.
- The structure of a program.
- syntax error.
- An error in a program that makes it impossible to parse β and therefore impossible to interpret.
- token.
- One of the basic elements of the syntactic structure of a program, analogous to a word in a natural language.
You have attempted of activities on this page.
