ayushgp ayushgp - 2 years ago 75
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
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download