Python - Error de identacion Python3

 
Vista:

Error de identacion Python3

Publicado por PabloGM98 (2 intervenciones) el 10/02/2020 11:39:41
El error es el siguiente:
try:
^
TabError: inconsistent use of tabs and spaces in indentation


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
while space_exist():
        print_board()
        print('# Make your move ! [1-9] : ', end='')
 
	##GESTION DE EXCEPCIONES, SOLO VALIDO UN NUMERO
        try:
            move = int(input())
        except ValueError:
            print("Oops! The value is incorrect, you must enter a number from [1-9]. Try again!!")
        moved, won = make_move(board, player, move)
        if not moved:
                print(' >> Invalid number ! Try again !')
                continue
 
        if won:
                result='*** Congratulations ! You woon ! ***'
                break
        elif computer_move()[1]:
                result='=== You lose ! =='
                break;
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
Imágen de perfil de joel
Val: 3.475
Oro
Ha mantenido su posición en Python (en relación al último mes)
Gráfica de Python

Error de identacion Python3

Publicado por joel (901 intervenciones) el 10/02/2020 14:49:05
Utiliza espacios o tabuladores, pero no los mezcles... Es recomendable utilizas espacios.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar