Python indentation error

0

I already program in c, I'm mdc in Python but I'm having difficulty with indentation, because in c we do not care about it, could someone help me, my code below

numero = int(input())
for i in range():
  x = int(input())
  n = int(input())
    int resto = x % n
    while(resto!=0)
        x = n
        n = resto
        resto = x % n
print(n2)
    
asked by anonymous 09.04.2018 / 19:10

1 answer

1

Hello,

Basically about the indentation in python, it is the one that defines the instruction block to be executed by certain control instruction (loop repetition, conditions, etc.). It resembles the keys used in C, Javascript, PHP.

On your specific example, it does have some syntax and indentation issues. I suggest taking a look at link to give a footprint in the basics.

    
09.04.2018 / 19:36