Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

readme.md

AttributeError: 'str' object has no attribute 'append'

Reproduce

text = "hello"
text.append("world")

Error Message

AttributeError: 'str' object has no attribute 'append'

Fix

text = "hello"
text = text + "world"

print(text)

Reflection

I treated a string like a list and tried to use append.