this is my code however it keeps outputting the answer as one while I want it to count the characters in the sentence.
#-----------------------------
myList = []
characterCount = 0
#-----------------------------
Sentence = "hello world"
newSentence = Sentence.split(",")
myList.append(newSentence)
print(myList)
for character in myList:
characterCount += 1
print (characterCount)
thank you for your help
The one line solution
or...
Quick fix to your original code
Revised code:
Output: