Python String Length: Get Length with len()
You can use the len() function to determine the length of a string, as shown below:
string = "Hello, World!"
length = len(string)
print("The length of the string is:", length)
The output result is:
The length of the string is: 13