PlzzzzzzzI have a doubt on this prblm Write a program to read a string strstr, which will contain words separated with space.
Write a program to read a string strstr, which will contain words separated with space.
Your task is to count the length of each word and print it. The output should be comma separated string.
Each string strstr will begin with "@".
The code stub provided here is to be used. It calls the function countChar(). Your task is to complete the function.
First line will contain TT, number of testcases. Then the testcases follow.
Each testcase contains a single string strstr
Output For each testcase, print the output on new line.
yeah it absolutely right
but, I need to get len() of each word seperated with comma
but i get comma at end also
How to remove that comma
for i in range(t):
for i in str:
If I remove the end="," Then I don't get commas in between that len() of i