Write a python function to extract odd length words in String


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

Solution

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



List all Python Programs