title: transfer between assembly and python
body: <p>I am a beginner for assembly and I am writing a code in assembly to compare with python then see if it's same.</p>
  
  <pre><code>mov eax, x        ; x
  mov ebx, y        ; y 
  mov ecx, z        ; z
  loop:             ; loop 
      inc eax       ; plus 1 to x
      cmp eax,ecx   ; compare x and z
      jne add_1     ; if not equal then jump to add_1
      je done       ; if equal then jump to done
  add_1:            ; add_1 statement
    add ebx, 1      ; y=y+1
    jmp cmp_x_and_z ; jump back to loop
  done: 
  </code></pre>
  
  <p>and I want to compare with this in python</p>
  
  <pre><code>for x in range(z):
      y = y + 1
  </code></pre>
  
  <p>Is my logical right or there is anything than I can change to make it better?</p>