Computer Science, asked by anushkachaudhary2160, 2 months ago

plz answer this question of computer​

Attachments:

Answers

Answered by Equestriadash
6

Numbers.add(1, 'sixteen') is the incorrect statement among the given options for adding an element into a list.

The reason it's incorrect is because a list has no attribute/function called 'add' to insert elements into a list.

The only two methods used for adding elements into lists are insert(), append() and extend().

Let's set a sample list to Numbers and see the error generated.

>>> Numbers = [15, 12, 31, 0, 1, 7]

>>> Numbers.add(1, 'sixteen')

Traceback (most recent call last):

 File "<pyshell#5>", line 1, in <module>

   Numbers.add(1, 'sixteen')

AttributeError: 'list' object has no attribute 'add'

As seen above, it returns an attribute error.


Equestriadash: Thanks for the Brainliest!
Answered by atrs7391
1

all of these. all of the above options are wrong.

Similar questions