(l: Node)
return result
converts the non-negative number list into a string.
converts the non-negative number list into a string.
converts the non - negative number list into a string .
def convert_to_str(l: Node) -> str:
    """
        converts the non-negative number list into a string.
    """
    result = ""
    while l:
        result += str(l.val)
        l = l.next
    return result
def convert_to_str ( l : Node ) -> str : result = "" while l : result += str ( l . val ) l = l . next return result