Operators Flashcards
(58 cards)
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
24
Q
+=
A
add value to variable
25
-=
subtract value from variable
26
*=
multiple value to variable
27
/=
divide value from variable
28
//=
divide value from variable
29
%=
modulo and reassign variable
30
**=
exponent and reassign
31
-
subtract
32
*
multiply
33
**
exponent
34
/
divide
35
//
divide
36
%
modulo/modulus - get remainder
37
less than
38
>
greater than
39
<=
less than, equal to
40
>=
greater than, equal to
41
==
equal to value (comparison)
42
<>
less than or greater than
43
!=
not equal to (comparison)
44
( )
used for order of operations and arguments
45
[ ]
forms lists
46
{ }
forms dictionaries
47
@
decorator used to add an argument to a function
48
,
not sure
49
:
used with functions, if statements, loops and classes
50
.
used with certain functions to call them
51
;
not sure
52
+=
add value to variable
53
-=
subtract value from variable
54
*=
multiple value to variable
55
/=
divide value from variable
56
//=
divide value from variable
57
%=
modulo and reassign variable
58
**=
exponent and reassign