Skip to content

Commit 49864d9

Browse files
committed
Add new file
1 parent 6089c3a commit 49864d9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

length.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#Write a len() function
2+
data = raw_input()
3+
count = 0
4+
for element in data:
5+
count = count + 1
6+
7+
print count
8+
# print len(data)

0 commit comments

Comments
 (0)