English

If L1 = [1, 2, 3, 2, 1, 2, 4, 2, . . . ], and L2 = [10, 20, 30, . . .], then (Answer using builtin function only) Write a statement to insert all the elements of L2 at the end of L1. - Computer Science (Python)

Advertisements
Advertisements

Question

If L1 = [1, 2, 3, 2, 1, 2, 4, 2, . . . ], and L2 = [10, 20, 30, . . .], then
(Answer using builtin function only)

Write a statement to insert all the elements of L2 at the end of L1.

One Word/Term Answer

Solution

L1.extend(L2) 

shaalaa.com
  Is there an error in this question or solution?
2024-2025 (March) Board Sample Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×