DevJourney · code I wrote while learning

Subtract 1 from each element in L1 and append to L2 and finally concatenate L1 and L2 into L1

2 items

README.md

Problem Statement

Write a python program to perform the following on the given list,
L1=[1,2,3,4,5]
a. Subtract 1 from each element and create a list L2 by applying the list
comprehension technique. L2=[0,1,2,3,4]
b. Concatenate L1 and L2 in L1. L1= [1,2,3,4,5,0,1,2,3,4]