Mar-30-2020, 12:55 AM
Hi Buran
Thanks for helping. Here's the snippet and the error message
File "/Users/Library/Preferences/PyCharmCE2019.3/scratches/QuickDictionary.py", line 16, in <module>
words2[token].append("taco")
AttributeError: 'str' object has no attribute 'append'
['coat', 'taco']
<re.Match object; span=(0, 0), match=''>
Process finished with exit code 1
Thanks for helping. Here's the snippet and the error message
words2 = dict() token: str ="acto" words2[token]="coat" words2[token].append("taco") #Line 16Traceback (most recent call last):
File "/Users/Library/Preferences/PyCharmCE2019.3/scratches/QuickDictionary.py", line 16, in <module>
words2[token].append("taco")
AttributeError: 'str' object has no attribute 'append'
['coat', 'taco']
<re.Match object; span=(0, 0), match=''>
Process finished with exit code 1