Mega Code Archive

 
Categories / Python Tutorial / Dictionary
 

Change value for existing key

numbers = ('1','2','3','4','5','6','7','8','9','0') letters = ('a','b','c','d','e','f') punct = ('.', '!', '?') charSetDict = {numbers:[], letters:[], punct:[]} charSetDict["Special"] = '><'