Computer Science, asked by singhkusum6336, 2 months ago

Which of the following is an incorrect statement for adding an item in the numbers list in a Python program?
Numbers.insert(1, 'sixteen')
Numbers.add(1, 'sixteen')
Numbers.append('sixteen')
all of these​

Answers

Answered by anandisarangnandanpa
2

Answer:

all of these

Explanation:

plz mark as brain list

Answered by amankatiyar362
0

Answer:

Numbers.add(1,'sixteen')

Explanation:

If we insert this statement in our code our code  shows attribute error.

Because python list has no attribute 'add'.

Attribute error.

One of the most common errors in Python  is AttributeError. AttributeError can be defined as an error that occurs when an attribute reference or assignment fails. For example, if you get the variable x, it will be assigned the value  10. Suppose you want to add another value to this variable in this process.

#SPJ3

Similar questions