Show Menu
Cheatography

python cheats for mrtim Cheat Sheet (DRAFT) by

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

Functions

str()
converts a value to a string
int()
converts a value to an integer
 

Sample Code

mystr = "hello123" # a string is just a list of characters

numbers = [1,2,3,4,5,6]
print (numbers)

largelist = range(100)

for num in largelist:
    print(num)