Write a Python function to print even length words in a string


Topic: Write a Python function to print even length words in a string

Solution

def printWords(s): 
    s = s.split(' ') 
    for word in s: 
        if len(word)%2==0: 
            print(word) 
s = "i am muskan"
printWords(s) 



List all Python Programs