List reverse(): Reverse the elements of the list, in place : List Reverse « List « Python






List reverse(): Reverse the elements of the list, in place

List reverse(): Reverse the elements of the list, in place
 

a = [66.25, 333, 333, 1, 1234.5]

a.reverse()
print a


           
       








Related examples in the same category

1.Sort and reverse elements in listSort and reverse elements in list