Data Types Flashcards

1
Q

False

A

boolean

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

true

A

boolean

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

None

A

no data

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

strings

A

data in “ “
letters, numbers and symbols
each character in a string is assigned a value from 0

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

numbers

A

whole numeric values

2

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

floats

A

decimal numeric values

2.25

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

integers

A

int

positive or negative whole numbers

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

modulo

A

mod
returns the remainder of a division
i.e. 3%2 will return 1. this is because 2 go into 3 once with one remaining (remember the remainder is what modulo is interested in)

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

lists

A

The list is a most versatile datatype available in Python which can be written as a list of comma-separated values (items) between square brackets. Good thing about a list is that items in a list need not all have the same type.

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