Python Vocabulary - Reverse Flashcards

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

A

<

18
Q

ASCII Bell (BEL)

A

\a

18
Q

Character with hex value hh

A

\xhh

19
Q

formatter used for debugging

A

%r

20
Q

character named in the unicode database (unicode only)

A

\N

22
Q

asterisk

A

*

23
Q

ASCII Formfeed (FF)

A

\f

25
Q

greater than

A

>

26
Q

turns line into a comment

A

#

26
Q

slash character

A

\

27
Q

allows you to set a series of args to a function

A

*args

28
Q

displays text on the screen

A

print

29
Q

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

A

‘w’/’r’/’a’

30
Q

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

A

read()

33
Q

sets a variable

A

=

34
Q

clears out all text from a file

A

trucate()

35
Q

ASCII vertical tab (VT)

A

\v

36
Q

accepts input from the user

A

raw_input()

37
Q

displays the help page for a particular command

A

python -m pydoc [command]

39
Q

formatter indicating a string

A

%s

40
Q

Carriage Return (CR)

A

\r ASCII

41
Q

Character with 32 bit hex value xxxxxxxx (unicode only)

A

\Uxxxxxxxx

42
Q

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

A

open()

43
Q

indicates a new line

A

\n

44
Q

allows you to jump to a certain area within a file

A

seek()

45
Q

declares a function

A

def

46
Q

less than or equal

A

<=

47
Q

minus

A

-

48
Q

a variable that accepts commands from the command line input

A

argv

49
Q

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

A

%