From a45e1d5445e04dd16c47b6d2e462b69e406ede10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20Ot=C3=A1vio?= Date: Tue, 25 Oct 2022 13:09:07 -0300 Subject: [PATCH] =?UTF-8?q?Introdu=C3=A7=C3=A3o=20aos=20blocos=20de=20c?= =?UTF-8?q?=C3=B3digo=20+=20if=20/=20elif=20/=20else=20(condicionais)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aula16.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 aula16.py diff --git a/aula16.py b/aula16.py new file mode 100644 index 0000000..d86d98f --- /dev/null +++ b/aula16.py @@ -0,0 +1,14 @@ +# if / elif / else +# se / se não se / se não +entrada = input('Você quer "entrar" ou "sair"? ') + +if entrada == 'entrar': + print('Você entrou no sistema') + + print(12341234) +elif entrada == 'sair': + print('Você saiu do sistema') +else: + print('Você não digitou nem entrar e nem sair.') + +print('FORA DOS BLOCOS')