Python Vocabulary Flashcards

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

>

A

greater than

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
Q

\xhh

A

Character with hex value hh

22
Q

%r

A

formatter used for debugging

23
Q

<

A

less than

24
Q

\r ASCII

A

Carriage Return (CR)

25
Q

%s

A

formatter indicating a string

26
Q

close()

A

closes and saves the file

28
Q

\t

A

tab character

30
Q

+

A

plus

31
Q

\ooo

A

Character with octal value ooo

32
Q

from [library] import [argument]

A

imports certain commands from python libraries

33
Q

sys

A

a library built into python

34
Q

write()

A

writes text to an open file

36
Q

#

A

turns line into a comment

37
Q

‘w’/’r’/’a’

A

read, write, and append attributes to be applied when opening a file

39
Q

=

A

sets a variable

40
Q

” or ‘

A

surrounds a string or line of text

41
Q

python -m pydoc [command]

A

displays the help page for a particular command

42
Q

<=

A

less than or equal

43
Q

/

A

slash

44
Q

*

A

asterisk

45
Q

\b

A

ASCII Backspace (BS)

46
Q

%d

A

formatter that indicates a decimal number

47
Q

*args

A

allows you to set a series of args to a function

48
Q

”””

A

indicates a multi-line quote

49
Q

\n

A

indicates a new line