Check length of String

    0

    0

    iAbdullahMughal

    check-string-lengthstrings
    Helpful

    This function checks length of string

    python3.6 and above

    def check_string_length(usr_input: str) -> int:
        if not usr_input:
            return 0
        str_input = f'{usr_input}'
        _str_length = len(str_input)
        return _str_length
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.