Intro Python Flashcards

1
Q

What does the print() function do in Python?

A

Tells a computer to talk

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

What do computer programmers refer to blocks of texts as?

A

They refer to them as strings

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

What are variables?

A

A method of storing data for reuse

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

What does a SyntaxError mean?

A

Means there is something wrong with the way your program is written

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

What does a NameError mean?

A

That the Python interpreter sees a word it does not recognize.

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

What is an integer?

A

A whole number, no decimal points.

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

What is another name for integer?

A

int

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

What is a floating-point number?

A

A decimal number

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

What is another name for a floating-point number?

A

float

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

What is a literal?

A

A number not assigned to a variable

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

What symbol do you need to use to update a string?

A

=

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

What is “ ** “ used for?

A

Donates notation

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

What does a modulo operator do?

A

gives the remainder of a division calculation

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

What is the modulo operator?

A

%

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

What does the + do?

A

Adds two numbers or two strings

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

What is the process of combining two strings called?

A

string concatenation

17
Q

If you’re trying to print() a numeric variable you can use BLANK to pass it as a different argument rather than converting it to a string.

A

commas “ , “

18
Q

What is “ += “ used for?

A

Short hand for updating variables

19
Q

What is “ “”” “ used for?

A

multi-line strings