+ 1

can i use len to work out amount of letters in a string

I am trying to make hangman in python and need to know how many letters are in a string

21st May 2017, 8:58 AM
Jack
Jack - avatar
1 Antwort
+ 1
yes indeed. str = "this is a string" length = len(str) # 16 BTW, it also counts space
21st May 2017, 9:10 AM
Sano Bhai