Basic python Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

True or False: Any strings of text need to have speech marks.

A

True

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

True or False: Variables need speech marks.

A

False - Variables do not need speech marks.

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

True or False: Each variable or string needs a comma to separate.

A

True

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

True or False: Don’t surround text you want to print in brackets.

A

False - Surround everything you want to print in brackets.

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

What does str mean?

A

String - words

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

What does int mean?

A

Integer

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

What does float mean?

A

Decimal number

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

What does the * symbol do?

A

Multiplication

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

What does the / symbol do?

A

Normal division

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

What does the // symbol do?

A

Division without a remainder or decimal

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

What does the % symbol do?

A

Modulus - gives the remainder of the division

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

What does the + symbol do?

A

Addition

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

What does the - symbol do?

A

Subtraction

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

What does the ** symbol do?

A

Exponent - raises the second number to a power

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

What does the == symbol mean?

A

Equal to

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

What does the != symbol mean?

A

Not equal to

17
Q

What does the > symbol mean?

A

Greater than

18
Q

What does the < symbol mean?

A

Less than