#K74342. Calculate String Lengths
Calculate String Lengths
Calculate String Lengths
You are given N strings. Your task is to calculate the length of each string and output the results in the same order as input.
The input is provided via stdin and the output should be printed to stdout.
Be careful to handle cases with empty strings, strings with only spaces, or strings containing special characters and punctuation. The length of a string is defined as the number of characters in it.
Note: There is no trick to this problem, it is a straightforward implementation.
inputFormat
The first line of input contains an integer N that denotes the number of strings.
The following N lines each contain one string. The strings may include spaces and special characters.
outputFormat
Output a single line containing N integers. Each integer represents the length of the corresponding input string. The integers should be separated by spaces.
## sample3
Hello, World!
Python
13 6 1