Loading...
Loading...
Loading...
An ID card shows the initials of a full name. Read a name made of one or more words and print the first letter of each word in capitals, separated by dots.
Extra spaces between words must be ignored.
.Example
Input
ravi kumar sharma
Output
R.K.S
Three words give R.K.S
Try the problem first. Open one hint at a time.
Split the line into words first, then take the first character of each one.
Collect the letters in a list and use ".".join(...) at the end.
Write your Python code, run it on the examples and submit it to hidden tests.
Solve in the editor