Read a full name such as sachin ramesh tendulkar and print the initials in capitals with dots, and a username made of the first name and the length of the full name.
split() breaks the name into words, p[0] is each first letter, and title() capitalises every word. The username counts letters only (spaces removed): 6 + 6 + 9 = 21.
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!
We use Google Analytics cookies to see how LearnFrenzy is used and make it better, and Google AdSense to keep it free.
No analytics or ad cookies are set until you accept. Privacy Policy
·
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!