ayushgp ayushgp - 6 months ago 10
Python Question

Do Python strings end in a terminating NULL?

Is there a special character on the end of Python strings? Like it is \0 in C or C++.
I want to count length of string in python without using the builtin

len
function.

Answer
l = "this is my string"
counter = 0
for letter in l:
    counter += 1

>>> counter
17