Python Vocabulary Flashcards

(49 cards)

1
Q

\

A

slash character

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

seek()

A

allows you to jump to a certain area within a file

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

\f

A

ASCII Formfeed (FF)

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

'

A

single quote

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

argv

A

a variable that accepts commands from the command line input

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

os.path

A

a library built into python

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

\N

A

character named in the unicode database (unicode only)

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

exists

A

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

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

\a

A

ASCII Bell (BEL)

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

raw_input()

A

accepts input from the user

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

print

A

displays text on the screen

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

-

A

minus

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

\v

A

ASCII vertical tab (VT)

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

>=

A

greater than or equal

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

+=

A

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

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

"

A

double quote

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

def

A

declares a function

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

\uxxxx

A

Character with 16 bit hex value xxxx (unicode only)

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

\Uxxxxxxxx

A

Character with 32 bit hex value xxxxxxxx (unicode only)

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

%

A

percent - allows you to specify which values your formatters refer to

16
Q

trucate()

A

clears out all text from a file

18
Q

>

19
Q

open()

A

opens a particular file, making the data it contains accessible to work with (must be assigned to a variable)

20
Q

read()

A

can take an opened file and interpret the text it contains, which can then be printed

21
\xhh
Character with hex value hh
22
%r
formatter used for debugging
23
\<
less than
24
\r ASCII
Carriage Return (CR)
25
%s
formatter indicating a string
26
close()
closes and saves the file
28
\t
tab character
30
+
plus
31
\ooo
Character with octal value ooo
32
from [library] import [argument]
imports certain commands from python libraries
33
sys
a library built into python
34
write()
writes text to an open file
36
#
turns line into a comment
37
'w'/'r'/'a'
read, write, and append attributes to be applied when opening a file
39
=
sets a variable
40
" or '
surrounds a string or line of text
41
python -m pydoc [command]
displays the help page for a particular command
42
\<=
less than or equal
43
/
slash
44
\*
asterisk
45
\b
ASCII Backspace (BS)
46
%d
formatter that indicates a decimal number
47
\*args
allows you to set a series of args to a function
48
"""
indicates a multi-line quote
49
\n
indicates a new line