Computer Science, asked by Neerajn6786, 1 year ago

Is list.reverse() method return a value?

Answers

Answered by kalpnarajput0901
0

Answer:

yes , reverse ( ) is a method that Reverse object of list

Answered by lovingheart
0

The list.reverse() method does not return any value, instead it will return the reversed list of the objects.

Explanation:

  • The reverse method reverses the entire list which means the first object in the list appears in the last and the last object of the list appears first.
  • Hence the value of the objects are not returned in this function but only the order of the list will be changed and it will be printed on the output screen.

To know more:

1) Program to find reverse a number by bluej method

https://brainly.in/question/5343281.

2) How to reverse the  single linked list by using swapping method.

can anyone help me....

https://brainly.in/question/4014

Similar questions