{"id":14346,"date":"2021-09-30T12:30:05","date_gmt":"2021-09-30T07:00:05","guid":{"rendered":"https:\/\/python-programs.com\/?p=14346"},"modified":"2021-11-22T18:34:38","modified_gmt":"2021-11-22T13:04:38","slug":"python-program-to-print-even-length-words-in-a-string","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-print-even-length-words-in-a-string\/","title":{"rendered":"Python Program to Print Even Length Words in a String"},"content":{"rendered":"

Given multiple strings separated by spaces, the task is to print even-length words in the given string in Python.<\/p>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given String ='Hello Good morning this is BTechgeeks online programming platform'<\/pre>\n

Output:<\/strong><\/p>\n

Even length words in the given string [ Hello Good morning this is BTechgeeks online programming platform ] are:\r\nGood\r\nthis\r\nis\r\nBTechgeeks\r\nonline\r\nplatform<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given String='hello this is btechgeeks online coding platform for btech students'<\/pre>\n

Output:<\/strong><\/p>\n

Even length words in the given string [ hello this is btechgeeks online coding platform for btech students ] are:\r\nthis\r\nis\r\nbtechgeeks\r\nonline\r\ncoding\r\nplatform\r\nstudents<\/pre>\n

Program to Print Even Length Words in a String in Python<\/h2>\n

Below are the ways to print even-length words in the given string in Python.<\/p>\n