Write a program for Extending a sublist


Topic: Write a program for Extending a sublist

Solution

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



List all Python Programs