Python Programming Terms 100% Correct
algorithm - A set of specific steps for solving a category of problems token - basic elements of a language(letters, numbers, symbols) high-level language - A programming language like Python that is designed to be easy for humans to read and write. low-level langauge - A programming language that is designed to be easy for a computer to execute; also called machine language or assembly language keyword - define the language's syntax rules and structure, and they cannot be used as variable names statement - instruction that the Python interpreter can execute operators - special tokens that represent computations like addition, multiplication and division modulus operator - %, works on integers (and integer expressions) and gives the remainder when the first number is divided by the second evaluate - To simplify an expression by performing the operations in order to yield a single value. int - A Python data type that holds positive and negative whole numbers float - A Python data type which stores floating-point numbers. Floating-point numbers are stored internally in two parts: a base and an exponent. When printed in the standard format, they look like decimal numbers flow of execution - The order in which statements are executed during a program run. function - A named sequence of statements that performs some useful operation. Functions may or may not take parameters and may or may not produce a result fruitful function - A function that returns a value when it is called. local variable - A variable defined inside a function. A local variable can only be used inside its function. Parameters of a function are also a special kind of local variable. parameter - A name used inside a function to refer to the value which was passed to it as an argument. boolean function - A function that returns a Boolean value. The only possible values of the bool type are False and True. None - A special Python value. One use in Python is that it is returned by functions that do not execute a return statement with a return argument. block - A group of consecutive statements with the same indentation. boolean expression - An expression that is either true or false. conditional statement - A statement that controls the flow of execution depending on some condition. In Python the keywords if, elif, and else are used for conditional statements. conditional statement - One program structure within another, such as a conditional statement inside a branch of another conditional statement type conversion - An explicit function call that takes a value of one type and computes a corresponding value of another type. definite iteration - A loop where we have an upper bound on the number of times the body will be executed. Definite iteration is usually best coded as a for loop increment - Both as a noun and as a verb, increment means to increase by 1. iteration - Repeated execution of a set of programming statements. nested loop - A loop inside the body of another loop. trace - To follow the flow of execution of a program by hand, recording the change of state of the variables and any output produced.
Document information
- Uploaded on
- June 23, 2023
- Number of pages
- 43
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers