Without Using Function

s = input("Enter the any String : ")

s = s.split(' ')
for w in s:
    if len(w) % 2 == 0:


Enter the any String : Hello I am John

With Using Function

def even_word(s):
    s = s.split(' ')
    for w in s:
        if len(w) % 2 == 0:
even_word("I have a laptop for programming")




Login is mandatory to comment Please login

Recommended Posts

Calculate the GCD or HCF in Python Programming language

The GCD or HCF of two numbers is the largest positive integer that perfectly divides the two given numbers.

Given Number is EVEN Or ODD in Python Programming Language

Write a program to check that given number is Even or Odd in Python Programming language.

Diet Exercise Management System in Python

In this tutorial we write a management system which maintain the diet and exercise of the user.

Find the greatest number given three number by user in python programming

Write a program to check that given three number is by user in Python Programming language.

Calculate the area of circle in Python Programming

In this tutorial, we will learn all about the circle ( area, circumference ) with all types of method. Inbuild Methods, function, simple so on.

leap year in python

The year which has 366 days is called a leap year. This additional day is added in february which makes it 29 days long.