|
IF
|
|
|
ELSE
|
|
|
ELIF
|
|
variable
|
something that can change
|
|
string
|
a list of character like number letter and sumbols
|
|
integer number
|
whole number or counting number
|
|
float
|
the number into decimal number
|
|
number
|
number
|
|
syntax
|
structure of language
|
|
loop
|
while
|
|
input
|
Gain information from user
|
|
print
|
show information that we want on the screen
|
|
input()
|
ask for information from user
|
|
print()
|
show information that we want on the scree
|
|
int()
|
Change number to be number integer
|
|
float()
|
Change number to be decimal
|
|
str()
|
String a list of number ,letter , and symbol
|
|
Str + Str
|
combine together .Like "1" + "2" = 12
|
|
Str +number
|
crash
|
|
number+ number
|
sum, addition
|
|
str - number
|
crash
|
|
str - str
|
crash
|
|
number - number
|
subtract
|
|
==
|
equal to
|
|
!=
|
not equal to
|
|
<
|
less than
|
|
>
|
more than
|
|
<=
|
less than or equal to
|
|
>=
|
more than or equal to
|
|
str / str
|
crash
|
|
str / number
|
crash
|
|
number / number
|
division
|
|
str*number
|
combine that string."6" *2 ='66'
|
|
str*str
|
crash
|
|
number*number
|
multiply
|
|
str**str
|
crash
|
|
random.ch-oice()
|
random word in the list. need to put 'import random' at the top first
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.