<reponame>arifulhaqueuc/python-algorithm-excersice

## Print the items form the following list
## if the items ONLY start with "ba"

list_all_1 = [


 'bb1'
,'bb2'
,'bb3'
,'ba4'


]


bb_remove = [x for x in list_all_1 if x[:2]=='ba']

for i in ba_remove:
	print i


#####################
#####################

	
	
list_all_2 = [


 'b000b1'
,'b000b2'
,'b000b3'
,'b000a4'
,'ba1'
,'bb2'
,'ba3'
,'ba4'

]
	
## let's print the items if 
## "ba" is in a item

ba_print = [s for s in list_all_2 if 'ba' in s]
for m in ba_print:
	print m




## Print the items form the following list
## if the items ONLY start with "ba"

list_all_1 = [


 'bb1'
,'bb2'
,'bb3'
,'ba4'


]


bb_remove = [x for x in list_all_1 if x[:2]=='ba']

for i in ba_remove:
	print i


#####################
#####################

	
	
list_all_2 = [


 'b000b1'
,'b000b2'
,'b000b3'
,'b000a4'
,'ba1'
,'bb2'
,'ba3'
,'ba4'

]
	
## let's print the items if 
## "ba" is in a item

ba_print = [s for s in list_all_2 if 'ba' in s]
for m in ba_print:
	print m
## Print the items form the following list ## if the items ONLY start with "ba" ##################### ##################### ## let's print the items if ## "ba" is in a item