Write a program to print EVEN length words of a string


Topic: Write a program to print EVEN length words of a string

Solution

str = "Python is a programming language"
words = list(str.split(' '))
print "str: ", str
print "list converted string: ", words
print "EVEN length words:"
for W in words:
	if(len(W)%2==0 ):
		print W
        



List all Python Programs