+ 1

reverse method

how can i make use of the “.reverse” method

30th Jul 2019, 7:49 AM
Claudius Omosuyi
Claudius Omosuyi - avatar
2 Antworten
+ 8
a = [1,2,3] a.reverse() print(a)
30th Jul 2019, 8:09 AM
Mikhail Gorchanyuk
Mikhail Gorchanyuk - avatar
+ 2
thanks man . output=[3, 2,1]
30th Jul 2019, 9:20 AM
Claudius Omosuyi
Claudius Omosuyi - avatar