Show Menu
Cheatography

tnypython Cheat Sheet by

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
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.