Опубликован: 12.07.2013 | Уровень: специалист | Доступ: платный
Дополнительный материал 5:

Glossary

< Дополнительный материал 4 || Дополнительный материал 5: 12
Ключевые слова: positive, form, negative number, example, absolute value, positive number, SEE, artificial intelligence, Series, compute, operating system, VALUES, function call, CAN, intelligent, response, USER, Actions, text, AND, draw, programming, language, assembly language, human-readable, translate, machine code, sign, used, assign, Line, assignment operator, this, with, new, symbol, asterisk, AS, multiplication, assignment, group, lines of code, amount, indentation, Data, boolean operator, include, break, point, set, cause, debugger, while, running, statement, First, end, block, cryptography, try, key in, decrypt, syntax error, semantic error, substitution cipher, ONE, system, exact, area, space, board, cartesian coordinate system, axis, horizontal, vertical, mean, python, case-sensitive, CPU, chip, computer, software, algorithm, encrypt, part, interpreter, programmer, begin, go, property, addition, NOT, equal, expression, EXISTS, boolean, change, constant variable, store, convention, ALL, uppercase letter, string, INTERPOL, MOST, conversion, specifier, central processing unit, event, runtime error, crash, science, secret, category, step, TIME, decrease, numeric value, convert, plaintext, function, keyword, function name, parentheses, PARAMETER, comma, colon, Character, separate, container, dictionary, else, if, CONDITION, list, length, empty string, empty list, garbage, EXCEPT, escape character, forward, backslash, newline character, terminate, change file, include file, idle, editor, fraction, decimal point, floating point, Chart, flow of execution, execution, ITERATE, section, Top, flow, control statement, collection, return, Command, pass, evaluate, random, meaning, scope, global scope, local scope, stay, fixed, keyboard, CASE, mouse, interactive, environment, input, output, term, FROM, immutable, SEQUENCE, MODULE, call, numeric variable, actual, mark, integer, square bracket, item, INDEX, error, attempt, LIKE, looping, exit, infinite loop, player, division, remainder, integer division, even, answer, execute, operator, read, MET, HAVING, method, percent sign, minus sign, front, hardware, Windows, mac, connect, ASCII, ordinal, Replace, specified, circular, percentage, portion, entire, circle, computer game, pound sign, screen, computer programming, REFERENCES, Copy, Last, shell, WHERE, letter, subset, slice, substring, Write, find, alternative, string concatenation, single quote, double, individual, grammar, understandable, incomplete, syntax, combination, tuple, instance, coordinate

Glossary

absolute value - The positive form of a negative number. For example, the absolute value of -2 is 2. The absolute value of a positive number is simply the positive number itself.

AI - see, artificial intelligence

algorithm - A series of instructions to compute something.

applications - A program that is run by an operating system. See also, program.

arguments - The values that are passed for parameters in a function call.

artificial intelligence - Code or a program that can intelligent make decisions (for example, decisions when playing a game) in response to user actions.

ASCII art - Using text characters and spaces to draw simple pictures.

assembly language - The simplest programming language. Assembly language instructions are a human-readable form that can directly translate into machine code instructions.

assignment operator - The = sign. Used to assign values to variables.

assignment statement - A line of code that assigns a value to a variable using the assignment operator. This defines, that is, creates the variable when used with a new variable. For example: spam = 42

asterisk - The * symbol. The asterisk is used as a multiplication sign.

augmented assignment operator - The +=, -=, *=, and /= operators. The assignment spam += 42 is equivalent to spam = spam + 42.

block - A group of lines of code with the same amount of indentation. Blocks can contain other blocks of greater indentation inside them.

boolean - A data type with only two values, True and False.

boolean operator - Boolean operators include and, or, and not.

break point - A break point can be set on a specific line of code, which will cause the debugger to take over when that line is executed while running the program under a debugger.

break statement - The break statement immediately jumps out of the current while or for loop to the first line after the end of the loop's block.

brute force - In cryptography, to try every possible key in order to decrypt an encrypted message.

bugs - Errors in your program's code. The three types of bugs are syntax errors, runtime errors, and semantic errors.

caesar cipher - A simple substitution cipher in which each symbol is replaced by one and only one other symbol.

cartesian coordinate system - A system of coordinates used to identify exact points in some area of space (such as the monitor, or on a game board). Cartesian coordinates systems commonly have two coordinates, one of the X-axis (that is, the horizontal left-right axis) and one of the Y-axis (that is, the vertical up-down axis).

case-sensitivity - Declaring different capitalizations of a name to mean different things. Python is a case-sensitive language, so spam, Spam, and SPAM are three different variables.

central processing unit - CPU, the main chip that your computer uses to process software instructions.

cipher - In cryptography, an algorithm used to encrypt and decrypt messages with a certain key.

ciphertext - In cryptography, the encrypted form of a message.

comment - Part of the source code that is ignored by the Python interpreter. Comments are there to remind the programmer about something about the code. Comments begin with a # sign and go on for the rest of the line.

commutative property - The property of addition and multiplication that describes how the order of the numbers being added or multiplied does not matter. For example, 2 + 4 = 6, and 4 + 2 = 6. Also, 3 * 5 = 15, and 5 * 3 = 15.

comparison operators - The operators < ("less than"), <= ("less than or equal to"), > ("greater than"), >= ("greater than or equal to"), == ("equal to"), and != ("not equal too").

condition - Another name for an expression, one that exists in an if or while statement that evaluates to a boolean True or False value.

constant variables - Variables whose values do not change. Constant variables are often used because it is easier to type the name of the variable then the value that they store. As a convention, constant variable names are typed in all uppercase letters.

convention - A way of doing things that is not required, but is usually done to make a task easier.

conversion specifiers - The text inside a string that makes use of string interpolation. The most common conversion specifier is %s, which specifies that the variable it interpolates should be converted to a string.

cpu - see, Central Processing Unit

crash - An event that happens because of a runtime error. After crashing, the program immediately terminates.

cryptanalysis - The science of breaking secret codes and ciphers.

cryptography - The science of making secret codes and ciphers.

data types - A category of values. Some types in Python are: strings, integers, floats, boolean, lists, and NoneType.

debugger - A program that lets you step through your code one line at a time (in the same order that Python executes them), and shows what values are stored in all of the variables.

decrementing - To decrease a numeric value by one.

decrypting - To convert an encrypted message to the readable plaintext version.

def statement - A statement that defines a new function. The def statement begins with the def keyword, followed by the function name and a set of parentheses, with any number of parameter names delimited by commas. At the end is a : colon character. For example, def funcName(param1, param2):

delimit - To separate with. For example, the string 'cats,dogs,mice' is delimited with commas.

dictionary - A container data type that can store other values. Values are accessed by a key. For example, spam['foo'] = 42 assigns the key 'foo' of the spam dictionary the value 42.

else statement - An else statement always follows an if statement, and the code inside the else-block is executed if the if statement's condition was False.

empty list - The list [], which contains no values and has a length of zero. See also, empty string.

empty string - The string '', which contains no characters and has a length of zero. See also, empty list.

encrypting - To convert a message into a form that resembles garbage data, and cannot be understood except by someone who knows the ciphr and key used to encrypt the message.

escape character - Escape characters allow the programmer to specify characters in Python that are difficult or impossible to type into the source code. All escape characters are preceeded by a \ forward backslash character. For example, \n displays a newline character when it is printed.

evaluate - Reducing an expression down to a single value. The expression 2 + 3 + 1 evaluates to the value 6.

execute - The Python interpreter executes lines of code, by evaluating any expressions or performing the task that the code does.

exit - When a program ends. "Terminate" means the same thing.

expression - Values and function calls connected by operators. Expressions can be evaluated down to a single value.

file editor - A program used to type in or change files, including files of Python source code. The IDLE program has a file editor that you use to type in your programs.

floating point numbers - Numbers with fractions or decimal points are not integers. The numbers 3.5 and 42.1 and 5.0 are floating point numbers.

flow chart - A chart that informally shows the flow of execution for a program, and the main events that occur in the program and in what order.

flow control statements - Statements that cause the flow of execution to change, often depending on conditions. For example, a function call sends the execution to the beginning of a function. Also, a loop causes the execution to iterate over a section of code several times.

flow of execution - The order that Python instructions are executed. Usually the Python interpreter will start at the top of a program and go down executing one line at a time. Flow control statements can move the flow of execution to different parts of code in the program.

function - A collection of instructions to be executed when the function is called. Functions also have a return value, which is the value that a function call evaluates to.

function call - A command to pass execution to the code contained inside a function, also passing arguments to the function. Function calls evaluate to the return value of the function.

garbage data - Random data or values that have no meaning.

global scope - The scope of variables outside of all functions. Python code in the global scope cannot see variables inside any function's local scope.

hard-coding - Using a value in a program, instead of using a variable. While a variable could allow the program to change, by hard-coding a value in a program, the value stays permanently fixed unless the source code is changed.

hardware - The parts of a computer that you can touch, such as the keyboard, monitor, case, or mouse. See also, software.

higher-level programming languages - Programming languages that humans can understand, such as Python. An interpreter can translate a higher-level language into machine code, which is the only language computers can understand.

IDLE - Interactive DeveLopment Environment. IDLE is a program that helps you type in your programs and games.

I/O - Input/Output. This is a term used in reference of the data that is sent into a program (input) and that is produced by the program (output).

immutable sequence - A container data type that cannot have values added or deleted from it. In Python, the two immutable sequence data types are strings and tuples.

import statement - A line of code with the import keyword followed by the name of a module. This allows you to call any functions that are contained in the module.

incrementing - To increase the value of a numeric variable by one.

indentation - The indentation of a line of code is the number of spaces before the start of the actual code. Indentation in Python is used to mark when blocks begin and end. Indentation is usually done in multiples of four spaces.

index - An integer between square brackets that is placed at the end of an ordered container variable (most often a list) to evaluate to a specific item in that container. The first index starts at 0, not 1. For example, if spam refers to the list ['a', 'b', 'c', 'd'], then spam[2] evaluates to 'c'.

index error - An index error occurs when you attempt to access an index that does not exist. This is much like using a variable that does not exist. For example, if spam refers to the list ['a', 'b', 'c', 'd'], then spam[10] would cause an index error.

infinite loop - A loop that has a condition that always evaluates to True, which makes the loop keep looping forever. The only way to exit an infinite loop is with a break statement.

input - The text or data that the user or player enters into a program, mostly from the keyboard.

integer division - Division that ignores any remainder and rounds the evaluated number down. Integer division occurs when both numbers in the division expression are integers. For example, 20 / 7 evaluates to the integer 6, even though the answer is 6.666 or 6 remainder 2.

integers - Integers are whole numbers like 4 and 99 and 0. The numbers 3.5 and 42.1 and 5.0 are not integers.

interactive shell - A part of IDLE that lets you execute Python code one line at a time. It allows you to immediately see what value the expression you type in evaluates to.

interpreter - A program that translates instructions written in a higher-level programming language (such as Python) to machine code that the computer can understand and execute.

iteration - A single run through of the code in a loop's block. For example, if the code in a while-block is executed ten times before execution leaves the loop, we say that there were ten iterations of the while-block's code.

< Дополнительный материал 4 || Дополнительный материал 5: 12
Марат Хасьянов
Марат Хасьянов
Россия
Роман Дрындик
Роман Дрындик
Россия