tnypython Cheat Sheet

A Programming › Python cheat sheet in English by tnytanoy
3,987 views 1,627 downloads 15 Feb 2016 History
3.7 avg · 0 ratings

Python Cheatsheet #1

COMMAND
print()
print info/c­ommand on the screen
int()
convert string to integers
str()
convert number to string
float()
convert integers to decimal
input()
to gain info/c­ommand from the user
len()
the length of the string
import
to import an external program
random.ch­oice()
to choose randomly from a list

DEFINI­TIONS

String
list of letter­s/n­umber
Variable
value that can be change
Integer
whole number
Floating Point
decimal
Syntax
grammar
Boolean
ture/False

ADDITIONAL

string­+string
combine that string
string­+number
crash
number­+number
math-a­ddition

MULTIP­LIC­ATION EXPONENT

String­*number
combine that string
String­**n­umber
crash
number­*number
math-m­ultiply
number­**n­umber
math-e­xponent
string­*string
crash
string­**s­tring
crash

Badges

Nice Cheat Sheet Good Cheat Sheet

Comments

No comments yet.

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.