attributeerror 'str' object has no attribute 'append' dictionary python code example Example: 'dict' object has no attribute 'append' a = {}; a['key']= ' World' print a