> I am using python

In Python variables are allowed to exit the scope of the loop/conditional where 
they're defined. For example:
    
    
    for i in range(5):
        print(i)
    
    print(2*i) # prints 8
    
    
    Run

In Nim these kind of things are not allowed, as others have already explained.

Reply via email to