Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
29 Cards in this Set
- Front
- Back
|
Evaluates each expression in turn and writes the resulting object to standard output. |
|
" " (parentheses) |
A syntax used to identify a string in a program. |
|
# (Hash Sign) |
A syntax used to comment inside of python and ignored by the python interpreter. |
|
+ (Addition) |
Adds values on either side of the operator |
|
- (Subtraction) |
Subtracts right hand operand from left hand operand |
|
* (Multiplication) |
Multiplies values on either side of the operator |
|
/ (Division) |
Divides left hand operand by right hand operand
|
|
% (Modulus) |
Divides left hand operand by right hand operand and returns remainder |
|
** (Exponent ) |
Performs exponential (power) calculation on operators |
|
// (Floor Division) |
The division of operands where the result is the quotient in which the digits after the decimal point are removed. |
|
; (semicolon) |
A syntax that allows multiple statements on the single line given that neither statement starts a new code block. |
|
suites |
A group of individual statements, which make a single code block |
|
(colon) |
Terminates the header line statement and usually followed by the lines that make up the suite. |
|
%s (formatter) |
Is a formatter that replaces the value inputted in a string with the variable to the right of the next % sign. This %s specifier converts the object using str() |
|
, (comma) |
It prevents the print from ending with a newline. |
|
%r (formatter) |
A formatter used for debugging, since it displays the "raw" data of the variable. This converts objects by using repr(). |
|
\ (escape sequence character) |
encodes difficult-to-type characters into a string. |
|
raw_input |
A function that reads a line from input, converts it to a string (stripping a trailing newline), and returns that. |
|
sys (System-specific parameters) |
This module provides access to some variables used or maintained by the python program and to functions that interact strongly with the python program. It is always available. |
|
argv (command-line argument) |
a list containing the arguments passed to the python interpreter when called from a command line. |
|
from (module) |
A module that accesses the request directly |
|
import (module) |
Tells the module what to take from the module package specifically to be used in the program. |
|
os.path (module) |
This module contains a number of functions that deal with long filenames in a platform independent way. |
|
* (asterisk) |
This syntax makes is so there can be any number of extra positional arguments. |
|
** (double asterisk) |
The double means there can be any number of extra named parameters. |
|
Def (function) |
A function is a block of organized, reusable code that is used to perform a single, related action. Functions provide better modularity for your application and a high degree of code reusing. |
|
. (syntax) |
This syntax seperates the object from the method name. |
|
( ) (parenthesis) |
This syntax denote parameter lists and invoking methods in Python. |
|
= (equal sign) |
Simple assignment operator, Assigns values from right side operands to left side operand |