Smart Tech
Showing posts with label
length
.
Show all posts
Showing posts with label
length
.
Show all posts
Wednesday, June 10, 2015
Length of a string with out len() function - Python
st = " This is awesome!"
count = 0
for x in st:
count = count + 1
print count
if(len(st) == count):
print "it works!"
Older Posts
Home
Subscribe to:
Posts (Atom)