Data Types Flashcards Preview

PYTHON > Data Types > Flashcards

Flashcards in Data Types Deck (9)
Loading flashcards...
0
Q

False

A

boolean

1
Q

true

A

boolean

3
Q

None

A

no data

4
Q

strings

A

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

5
Q

numbers

A

whole numeric values

2

6
Q

floats

A

decimal numeric values

2.25

7
Q

integers

A

int

positive or negative whole numbers

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)

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.