ayushgp ayushgp - 1 year ago 57
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


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

>>> counter