6 lines
142 B
Python
6 lines
142 B
Python
def string_length(str1):
|
|
count = 0
|
|
for char in str1:
|
|
count += 1
|
|
return count
|
|
print(string_length('sadsadsadasd.com')) |