0
How to convert input string in to list in python.
Convert string to list and count each letter of sentence
4 ответов
+ 2
Here's how to count number of letters:
num = len(str) - str.count(" ")
+ 2
Aleksei Radchenkov here - str.count(" ") asks pythons to do not count the space so if it is 8 then it ignores spacebar and give 7 Best example of maths we can give simple commands to Machines due to maths 😄.....
+ 1
And how you will count each letter in number
Eg input=hi hello
Count is 7
0
list = input().split()
That is covered in the Python course...