|
print()
|
show information that you want on the screen
|
|
int()
|
change number to be number integer
|
|
float()
|
change number to be decimal
|
|
input()
|
gain information from user
|
|
str()
|
a list of number, letter and symbols
|
|
len()
|
the length of the string
|
|
#
|
comment, no effect
|
|
variable
|
hold a value and can be change
|
|
string
|
a list of character such as number, letter and symbols
|
|
Integer number
|
whole number/ counting number
|
|
float number
|
the number in decimal
|
|
syntax
|
grammar/structure of lanquage
|
|
modulo
|
find the remainder
|
|
boolean
|
true/false
|
|
==
|
equal to
|
|
!=
|
no equal to
|
|
<
|
less than
|
|
>
|
more than
|
|
<=
|
less than or equal to
|
|
>=
|
more than or equal to
|
|
%
|
modulo, find the remainder
|
|
string + string
|
combine togethe
|
|
string + number
|
CRASH!
|
|
number + number
|
additional (math)
|
|
string * number
|
combine that string
|
|
string * string
|
CRASH!
|
|
number * number
|
multiply (math)
|
|
string ** string
|
CRASH!
|
|
number ** number
|
Exponent (math)
|
|
string ** number
|
CRASH!
|
|
Rule for giving name
|
|
-lettter
|
|
-number
|
|
-underscore(_)
|
|
valid name
|
|
-mystr
|
|
-my3
|
|
-hello_there
|
|
invalid name
|
|
-3my="hi" --cannot start with number
|
|
-first name="hi"
|
|
-first-name
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.