Python Flashcards

1
Q

How would you make it so that between spring in a print command have a comma

A

sep= “,” at the end

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

How would you find the boolean value of something

A

bool()

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

How would you get a user to send the computer their information

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

What does the if elif else statement do

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

how many indentions inside the body of a if

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

how many elif statement can you have

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

how would you check for an int before casting

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

what are try and except blocks for

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

what is a SyntaxError:

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

what is a IndentationError:

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

what is a * EOFError:

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

what is a AssertionError

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

what is a ValueError:

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

what is a NameError: ?

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

How do you make a function

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