Sign in
Log inSign up

Why am I getting this error in Python3?

Dhruv Jain's photo
Dhruv Jain
·Jul 1, 2017
>>>cast= ("1","2")
>>> cast.append("Gilliam")
Traceback (most recent call last):
File "<pyshell#44>", line 1, in <module>
   cast.append("Gilliam")
AttributeError: 'tuple' object has no attribute 'append'
Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct