Write a program for Reversing a sublist


Topic: Write a program for Reversing a sublist

Solution

a = [[2, 4, 6, 8, 10], [3, 6, 9, 12, 15], [4, 8, 12, 16, 20]] 
a[2].reverse() 
print(a) 



List all Python Programs