Python3 Att List Reverse
# Python3.x Python3 List reverse() Method
[ Python3 Lists](#)
* * *
## Description
The reverse() function is used to reverse the elements of a list.
## Syntax
The syntax for the reverse() method is:
list.reverse()
## Parameters
* NA.
## Return Value
This method does not return any value, but it reverses the elements of the list in place.
## Example
The following example demonstrates the usage of the reverse() function:
#!/usr/bin/python3 list1 = ['Google', 'Tutorial', 'Taobao', 'Baidu'] list1.reverse()print ("List after reversal: ", list1)
The output of the above example is:
List after reversal: ['Baidu', 'Taobao', 'Tutorial', 'Google']
[ Python3 Lists](#)
YouTip