3 Debugging Flashcards

1
Q

Infinity

A

math.inf

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

No newline at end of print statement

A

, end=’’

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

Look up memory address of something

A

id(thing)

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

Put 2+ statements on one line

A

State1 ; state2

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

ParseError

A

Syntax error, such as missing punctuation

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

Syntax error, such as missing punctuation

A

ParseError

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

TypeError

A

Combining incompatible-type objects

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

Combining incompatible-type objects

A

TypeError

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

NameError

A

Using a variable before it’s been declared

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

Using a variable before it’s been declared

A

NameError

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

ValueError

A

Passing a parameter to a function that’s out of range

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

Passing a parameter to a function that’s out of range

A

ValueError

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