Show Menu
Cheatography

Python Cheat Sheet Cheat Sheet (DRAFT) by

Essential Python Concepts

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Data Types

Types
Examples
Type Conversion
Integer
-256, 19
int( )
Float
-235.34, 1.235e-10
float( )
String
"­Hel­loW­orl­d"
,
'Hello­World'
str( )
Boolean
True
,
False
bool()

String­/Li­st/­Tuple Operations

 
 

Data Structures

List
[value1, value2, ...]
Tuple
(value1, value2, ...) 
Set
{value1, value2, ... }
1
Dictionary
{key1:­value1, key2:v­alue2, ... }