Write a python function to extract even length words in String


Topic: Write a python function to extract even length words in String

Solution

def findevenlenthwords(test_str):
	res = [] 
	for ele in test_str.split(): 
		if len(ele) % 2 == 0: 
			res.append(ele)  
	return res
	
	
	



List all Python Programs