0

how this command is used ? list.reverse()

need a short code to understand

2nd Apr 2020, 7:23 AM
Ansh
2 Respuestas
+ 4
Try running this code list = [ 1, 3 , 6] print (list) list.reverse() print (list)
2nd Apr 2020, 7:27 AM
Bhavya
Bhavya - avatar
+ 1
list = [1,2,3,4,5] list.reverse() print("Reversed list" ,list)
2nd Apr 2020, 7:28 AM
ғᴜɴ 3x
ғᴜɴ 3x - avatar