Cheatography
https://cheatography.com
Python peeravit
We learn lot of python in the past few months. First we begin with what is python and after that we learn how to plus divided and times. We learn how to convert decimal number to binary ,how python is important.Where is the google come from? and many thing with python
Such as Divided Plus Times and Minus by using the code and practice us to make them right.For the function of random ,we learn this to making a game like hangman or many kind of game that .We have to random the word |
Vocab
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 |
|
|
function
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 |
addition
Str + Str |
combine together .Like "1" + "2" = 12 |
Str +number |
crash |
number+ number |
sum, addition |
subtraction
str - number |
crash |
str - str |
crash |
number - number |
subtract |
|
|
Math
== |
equal to |
!= |
not equal to |
< |
less than |
> |
more than |
<= |
less than or equal to |
>= |
more than or equal to |
Division
str / str |
crash |
str / number |
crash |
number / number |
division |
Multiplication
str*number |
combine that string."6" *2 ='66' |
str*str |
crash |
number*number |
multiply |
str**str |
crash |
Random
random.ch-oice() |
random word in the list. need to put 'import random' at the top first |
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment