Operators Flashcards
1
Q
+
A
add
2
Q
+
A
add
3
Q
-
A
subtract
4
Q
*
A
multiply
5
Q
**
A
exponent
6
Q
/
A
divide
7
Q
//
A
divide
8
Q
%
A
modulo/modulus - get remainder
9
Q
A
less than
10
Q
>
A
greater than
11
Q
<=
A
less than, equal to
12
Q
> =
A
greater than, equal to
13
Q
==
A
equal to value (comparison)
14
Q
<>
A
less than or greater than
15
Q
!=
A
not equal to (comparison)
16
Q
( )
A
used for order of operations and arguments
17
Q
[ ]
A
forms lists
18
Q
{ }
A
forms dictionaries
19
Q
@
A
decorator used to add an argument to a function
20
Q
,
A
not sure
21
Q
:
A
used with functions, if statements, loops and classes
22
Q
.
A
used with certain functions to call them
23
Q
;
A
not sure