Python Vocabulary - Reverse Flashcards
closes and saves the file
close()
a library built into python
os.path
greater than or equal
>=
indicates a multi-line quote
”””
imports certain commands from python libraries
from [library] import [argument]
a command within os.path that determines whether a file exists or not
exists
a library built into python
sys
tab character
\t
Character with 16 bit hex value xxxx (unicode only)
\uxxxx
Character with octal value ooo
\ooo
formatter that indicates a decimal number
%d
plus
+
ASCII Backspace (BS)
\b
single quote
'
slash
/
add what’s to the right, then set equal to what’s on the left
+=
double quote
"
writes text to an open file
write()
surrounds a string or line of text
” or ‘
less than
<
ASCII Bell (BEL)
\a
Character with hex value hh
\xhh
formatter used for debugging
%r
character named in the unicode database (unicode only)
\N
asterisk
*
ASCII Formfeed (FF)
\f
greater than
>
turns line into a comment
#
slash character
\
allows you to set a series of args to a function
*args
displays text on the screen
read, write, and append attributes to be applied when opening a file
‘w’/’r’/’a’
can take an opened file and interpret the text it contains, which can then be printed
read()
sets a variable
=
clears out all text from a file
trucate()
ASCII vertical tab (VT)
\v
accepts input from the user
raw_input()
displays the help page for a particular command
python -m pydoc [command]
formatter indicating a string
%s
Carriage Return (CR)
\r ASCII
Character with 32 bit hex value xxxxxxxx (unicode only)
\Uxxxxxxxx
opens a particular file, making the data it contains accessible to work with (must be assigned to a variable)
open()
indicates a new line
\n
allows you to jump to a certain area within a file
seek()
declares a function
def
less than or equal
<=
minus
-
a variable that accepts commands from the command line input
argv
percent - allows you to specify which values your formatters refer to
%