Need this VB code changed into Python.
        Posted  
        
            by David
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by David
        
        
        
        Published on 2010-04-19T16:15:25Z
        Indexed on 
            2010/04/19
            16:33 UTC
        
        
        Read the original article
        Hit count: 335
        
I wrote this code in VB to label columns in a table but now im writting a python script to automate the process and i can't make it work. Any thoughts??
Static v1 as variant
Static v2 as variant
Dim Output as double
Dim Start as double
Start = 1
If v2 = [XMIN] Then
    Output = v1
Else
    Output = v1 + 1
End If
v1 = Output
v2 = [XMIN]
        © Stack Overflow or respective owner