Computer Science, asked by agnikr, 10 months ago

Select all the correct options to join two lists in Python *
listOne ['a', 'b', 'c','d']
list Two = ['e','f', 's']?

newList = listOne + list Two
new List = extend(listOne, list Two)
newList = listOne.extend(list Two)
newList.extend(listOne, list Two)​

Answers

Answered by pavithranatarajan855
5

Answer:

newlist=listOne+listTwo is correct

newlist=listOne.extend(listTwo)  

//in thist listOne will have 2 list elements in newlist it will be none.

Explanation:

1 and 3 are correct.

variables must be declared without space.

PLEASE MARK ME AS BRAINLIEST

Answered by kavyapsynergy
0

The following are the correct options to join two lists in Python

newList = listOne + list Two

newList = listOne.extend(list Two)

 

Join two lists in Python

  • The + operator in Python is used to combine the contents of two lists into a single new list.
  • Using the extend() method of a list, we may extend any existing list by concatenating the contents of other lists to it. The extend() method attaches all the items of an iterable (list, string, tuple, etc.) to the end of a list.
  • The output in both the cases will be ['a', 'b', 'c','d', 'e','f', 's']

Similar questions