+ 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
1 Respuesta
+ 1
yes indeed.
str = "this is a string"
length = len(str) # 16
BTW, it also counts space