Loading...
Loading...
Loading...
A badge printer needs the length of a name and the name in capital letters. Read one line and print its length on the first line, then the line in upper case.
Spaces count as characters.
Example
Input
Priya
Output
5 PRIYA
Five letters.
Try the problem first. Open one hint at a time.
len() counts every character, including spaces.
The method upper() returns a new string; print it directly.
Write your Python code, run it on the examples and submit it to hidden tests.
Solve in the editor