Coding Flashcards
1
Q
Integer
A
whole number
2
Q
String
A
text data
3
Q
Boolean
A
true or false
4
Q
float
A
whole number with a decimal point
5
Q
comment
A
#
6
Q
print statement
A
print(“ “)
7
Q
variable
A
variable = something
8
Q
floor division
A
//
9
Q
modulus
A
%
10
Q
addition
A
+
11
Q
subtraction
A
-
12
Q
multiplication
A
*
13
Q
division
A
/
14
Q
equal to
A
==
15
Q
not equal to
A
!=
16
Q
greater than
A
>
17
Q
less than
A
<
18
Q
greater than or equal to
A
> =
19
Q
less than or equal to
A
<=
20
Q
logical and
A
and
21
Q
logical or
A
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