191k views
0 votes
 myLIst = [1, 2, 45, 66, 77, 88]

White the line of code which will add 777 to myList. (Python)

 myLIst = [1, 2, 45, 66, 77, 88] White the line of code which will add 777 to myList-example-1

1 Answer

5 votes

Answer:

myList.append(777)

Step-by-step explanation:

Hi,

To add the element 777 to the list myList, we can use the append() function in Python that takes the element to be added as an argument and is applied to a list.

The line of code is: myList.append(777).

Good luck!

User Foufa
by
6.1k points