def string_length(str1):
    
    count = 0
    for char in str1:
        count += 1
    return count
def string_length(str1):
    count = 0
   
    _char_i = 0
    while _char_i < len(str1):
        char = str1[_char_i]
        count += 1
        _char_i += 1
    return count