Python List reverse() method

The list.reverse () method in Python reverses the elements of the list in place.

Syntax

Parameter

NA

Example 1

Output

Example 2

Output

Example 3

Output

Pin It on Pinterest

Share This