<garvit244>1290_1.py
def getDecimalValue( head):
    result = ''
    if not head:
        return 0
    while head:
        result+= str(head.val)
        head = head.next
    return int(result, 2)
def sample_funcname ( var_0 ) :
    var_2 = ''
    if not var_0 :
        return 0
    while var_0 :
        var_2 += str ( var_0.val )
        var_0 = var_0.next
    return int ( var_2 , 2 )
