<garvit244>206_1.py
def reverseList( head):
    if not head:
        return None
    
    prev, curr = None, head
    while curr:
        temp = curr.next
        curr.next = prev
        prev = curr
        curr = temp
    return prev
def sample_funcname ( var_0 ) :
    if not var_0 :
        return None
    var_2 , var_3 = None , var_0
    while var_3 :
        var_5 = var_3.next
        var_3.next = var_2
        var_2 = var_3
        var_3 = var_5
    return var_2
