{"id":14764,"date":"2021-10-01T11:00:11","date_gmt":"2021-10-01T05:30:11","guid":{"rendered":"https:\/\/python-programs.com\/?p=14764"},"modified":"2021-11-22T18:33:27","modified_gmt":"2021-11-22T13:03:27","slug":"python-program-to-accept-a-sentence-and-print-only-the-first-letter-of-each-word-in-capital-letters-separated-by-a-full-stop","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-accept-a-sentence-and-print-only-the-first-letter-of-each-word-in-capital-letters-separated-by-a-full-stop\/","title":{"rendered":"Python Program to Accept a Sentence and Print only the First Letter of Each Word in Capital Letters Separated by a Full Stop"},"content":{"rendered":"

Don’t stop learning now. Get hold of all the important Java fundamentals with the Simple java program example<\/a> guide and practice well.<\/p>\n

Given a string(sentence) the task is to Print only the First Letter of Each Word in Capital Letters Separated by a Full Stop in Python.<\/p>\n

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

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

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

Given string =hello this is btechgeeks 21 python<\/pre>\n

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

H.T.I.B.P.<\/pre>\n

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

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

Given string =good morning this is btechgeeks online coding 24 platform for btech students<\/pre>\n

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

G.M.T.I.B.O.C.P.F.B.S.<\/pre>\n

Program to Accept a Sentence and Print only the First Letter of Each Word in Capital Letters Separated by a Full Stop in Python<\/h2>\n

Below are the ways to Print only the First Letter of Each Word in Capital Letters Separated by a Full Stop in Python.<\/p>\n