LearnPy Hub
← Regular Expressions problems
Easy

Capitalised Words

Print the words that start with a capital letter, in order, or none.

Input

One line.

Output

One line.

Sample 1

Input
Mim went to Dhaka with Rafi
Output
Mim Dhaka Rafi

Sample 2

Input
all lower case
Output
none
solution.py
Output appears here
Capitalised Words · Python practice problem · LearnPy Hub