Sunday, May 18, 2014

Basic Python Data Types

Here are some basic python types to play around with in the interpreter.

String = 'string' or "String"
Integer = 1
List = ['I','am','a','list','of','strings'] *A list of strings*
List = [0,1,2,3,4] *A list of numbers*
Dictionary = {'key':value, 'kobe':24,'jordan':'mike'}
Variable = 'variable'
Boolean = True or False

No comments:

Post a Comment