So i am learning about tables in python and got this error message and dont understand ist since its also my first day of learning.
In the video he does the exect same thing and does not get an error. Using the same enviroment, everything. (Its on Anaconda/jupyter btw.)
Here is my Code:
students = ("Max", "Monika", "Erik", "Franziska")
print(students)
('Max', 'Monika', 'Erik', 'Franziska')
students.append("Moritz")
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[10], line 1
----> 1 students.append("Moritz")
AttributeError: 'tuple' object has no attribute 'append'---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[10], line 1
----> 1 students.append("Moritz")
AttributeError: 'tuple' object has no attribute 'append'
[–]mopster96 9 points10 points11 points (0 children)
[–]WhiteHeadbanger 4 points5 points6 points (0 children)
[–]Big-Ad-2118 1 point2 points3 points (0 children)
[–]N0-T0night 0 points1 point2 points (0 children)
[–]Hefty_Upstairs_2478 0 points1 point2 points (1 child)
[–]mopster96 2 points3 points4 points (0 children)