Explication: Je commence par déclarer ma variable 'age' age = 15 elif [int (guess_row)] [int (guess_col)] == "X": print "You … if-elif-else statement # If-elif-else statement is another variation of if-else statement which allows us to test multiple conditions easily instead of writing nested if-else statements. elif means else if. Estoy empezando a aprender a programar en Python a través de un libro. Thanks for contributing an answer to Stack Overflow! — Browse other questions tagged python python-3.x function or ask your own question. Where did all the old discussions on Google Groups actually come from? Hello! We can make the above program much more readable and simple using if-elif-else statement. To learn more, see our tips on writing great answers. :P, How to fix “Syntax Error, Invalid Syntax” (No context or reason why) Elif Function Python, https://www.onlinegdb.com/online_python_interpreter, Podcast 302: Programming in PowerPoint can teach you a few things. — Prelogic: r = int(input("Enter the Radius! When you run your Python code, the interpreter will first parse it to convert it into Python byte code, which it will then execute. Can an exiting US president curtail access to Air Force One from the new president? Não sei muito de python, mas acho que o erro é ter um elif sem a verificação – Denis Rudnei de Souza 30/08/17 às 18:15 Sobre controle de fluxo – Denis Rudnei de Souza 30/08/17 às 18:16 Sua identação também está inconsistente, isso na syntax do Python – Denis Rudnei de Souza 30/08/17 às 18:20 We also share information about your use of our site with our social media and analytics partners. elif is short for "else if", if you don't have an if to start the chain, then there is nothing to be an else of. When a microwave oven stops, why are unpopped kernels very hot and popped kernels not hot? Does healing an unconscious, dying player character restore only up to 1 hp unless they have been stabilised? Hi there! I'm constantly getting Syntax Errors on my elif line (arrows pointing towards the end of the "elif".