Coding Flashcards

1
Q

Integer

A

whole number

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

String

A

text data

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

Boolean

A

true or false

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

float

A

whole number with a decimal point

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

comment

A

#

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

print statement

A

print(“ “)

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

variable

A

variable = something

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

floor division

A

//

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

modulus

A

%

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

addition

A

+

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

subtraction

A

-

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

multiplication

A

*

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

division

A

/

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

equal to

A

==

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

not equal to

A

!=

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

greater than

17
Q

less than

18
Q

greater than or equal to

19
Q

less than or equal to

20
Q

logical and

21
Q

logical or

22
Q

if statements

A

if …:

elif ….:

else:

23
Q

random

A

(random.randint(0,10))

24
Q

array

A

special object used to store a list of variables of the same data type

25
Q

list

A

e.g. shopping_list = (“banana, egg, milk, milk, dog”)

26
Q

simple looping

A

looping made simple

27
Q

looping through an array

A

looping made difficult