Python Vocabulary - Reverse Flashcards

(49 cards)

1
Q

closes and saves the file

A

close()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

a library built into python

A

os.path

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

greater than or equal

A

>=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

indicates a multi-line quote

A

”””

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

imports certain commands from python libraries

A

from [library] import [argument]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

a command within os.path that determines whether a file exists or not

A

exists

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

a library built into python

A

sys

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

tab character

A

\t

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Character with 16 bit hex value xxxx (unicode only)

A

\uxxxx

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Character with octal value ooo

A

\ooo

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

formatter that indicates a decimal number

A

%d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

plus

A

+

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

ASCII Backspace (BS)

A

\b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

single quote

A

'

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

slash

A

/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

add what’s to the right, then set equal to what’s on the left

A

+=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

double quote

A

"

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

writes text to an open file

A

write()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

surrounds a string or line of text

A

” or ‘

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

less than

18
Q

ASCII Bell (BEL)

18
Q

Character with hex value hh

19
Q

formatter used for debugging

20
Q

character named in the unicode database (unicode only)

22
asterisk
\*
23
ASCII Formfeed (FF)
\f
25
greater than
\>
26
turns line into a comment
#
26
slash character
\\
27
allows you to set a series of args to a function
\*args
28
displays text on the screen
print
29
read, write, and append attributes to be applied when opening a file
'w'/'r'/'a'
30
can take an opened file and interpret the text it contains, which can then be printed
read()
33
sets a variable
=
34
clears out all text from a file
trucate()
35
ASCII vertical tab (VT)
\v
36
accepts input from the user
raw\_input()
37
displays the help page for a particular command
python -m pydoc [command]
39
formatter indicating a string
%s
40
Carriage Return (CR)
\r ASCII
41
Character with 32 bit hex value xxxxxxxx (unicode only)
\Uxxxxxxxx
42
opens a particular file, making the data it contains accessible to work with (must be assigned to a variable)
open()
43
indicates a new line
\n
44
allows you to jump to a certain area within a file
seek()
45
declares a function
def
46
less than or equal
\<=
47
minus
-
48
a variable that accepts commands from the command line input
argv
49
percent - allows you to specify which values your formatters refer to
%