Constructing a Dictionary : Introduction : Dictionary PYTHON TUTORIALS


PYTHON TUTORIALS » Dictionary » Introduction »

 

Constructing a Dictionary


numberDict = {1:'one', 2:'two', 3:'three', 4:'four'}
letterDict = {'vowel':['a','e','i','o','u']'consonant':['b','c','d','f']}
numbers = (1,2,3,4,5,6,7,8,9,0)
letters = ('a','b','c','d','e','f')
punct = ('.''!''?')
charSetDict = {numbers:[], letters:[], punct:[]}



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Dictionary
» Introduction