|
string + string
|
combine together
|
|
string + number
|
crash
|
|
number + number
|
math - addition
|
|
print()
|
displays information on the screen
|
|
input()
|
receives information from the user
|
|
int()
|
converts a value to an integer
|
|
==
|
equal to
|
9 == 9
|
|
!=
|
not equal to
|
55 != 2
|
|
+
|
addition
|
9 + 3 = 14
|
|
-
|
minus
|
5 - 1= 4
|
|
*
|
mutiply
|
5 * 5 = 25
|
|
/
|
divide
|
4 / 2 = 2
|
|
%
|
remainder
|
3 % 2 = 1
|
|
**
|
power
|
2 ** 2 = 4
|
|
<
|
less than
|
1 < 2
|
|
>
|
more than
|
2 > 1
|
|
<=
|
less than equal to
|
2 =< 3
|
|
>=
|
more than equal to
|
3 => 2
|
|
//
|
divide by (no decimal point)
|
3/300 = 100
|
|
variable
|
holds a value & can be changed
|
|
string
|
a list of characters such as numbers, letters, symbols.
|
|
print (name.upper())
|
|
print (name.lower())
|
|
print (name.capitalize())
|
|
print (name.title())
|
|
string * number
|
combine that string multiple times
|
|
string * string
|
crash
|
|
number * number
|
math - multiply
|
|
string ** string
|
crash
|
|
number ** number
|
math- exponents
|
|
string ** number
|
crash
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.