#use the built in function len() len("hello") #or you can count the characters in a string variable a = "word" len(a)