Game Development Reference
In-Depth Information
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.
key-value pairs - In dictionary data types, keys are values that are used to access the
values in a dictionary, much like a list's index is used to access the values in a list. Unlike
lists, dictionary keys can be of any data type, not just integers.
keys - In dictionaries, keys are the indexes used to
keys - In cryptography, a specific value (usuaully a number) that determines how a
cipher encrypts a message. To decrypt the message, you must know both the cipher and the
key value that was used.
list - The main container data type, lists can contain several other values, including other
lists. Values in lists are accessed by an integer index between square brackets. For example,
if spam is assigned the list ['a', 'b', 'c'] , then spam[2] would evaluate to 'c' .
list concatenation - Combining the contents of one list to the end of another with the
+ operator. For example, [1, 2, 3] + ['a', 'b', 'c'] evaluates to [1, 2,
3, 'a', 'b', 'c'] .
local scope - The scope of variables inside a single functions. Python code inside a
function can read the value of variables in the global scope, but any changes or new
variables made will only exist while execution is inside that function call.
loop - A block of code inside a loop (after a for or while statement) will repeatedly
execute until some condition is met.
loop unrolling - Replacing code inside a loop with multiple copies of that code. For
example, instead of for i in range(10): print 'Hello' , you could unroll that
loop by having ten lines of print 'Hello'
Search WWH ::




Custom Search