You can find the length of a string with the len function:
dog_name = "spot" print(len(dog_name))
The output of running the above code is:
4
Leave a comment