def get_longest_line_length ( text ) : lines = text . split ( "\n" ) length = 0 for i in range ( len ( lines ) ) : if len ( lines [ i ] ) > length : length = len ( lines [ i ] ) return length
how do you get python code to print longest line of a text
Get the length longest line in a paragraph
def get_longest_line_length(text):
    """Get the length longest line in a paragraph"""
    lines = text.split("\n")
    length = 0

    for i in range(len(lines)):
        if len(lines[i]) > length:
            length = len(lines[i])

    return length