From 3b50436ea5cf01b686c8d400ae9d856fbfc4e1fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20Ot=C3=A1vio?= Date: Tue, 25 Oct 2022 14:06:54 -0300 Subject: [PATCH] =?UTF-8?q?O=20Debugger=20do=20VS=20Code=20e=20o=20interpr?= =?UTF-8?q?etador=20do=20Python=20lendo=20os=20c=C3=B3digos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/launch.json | 16 ++++++++++++++++ aula18.py | 24 ++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 aula18.py diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..2eb18af --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,16 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Python: Arquivo Atual", + "type": "python", + "request": "launch", + "program": "${file}", + "console": "integratedTerminal", + "justMyCode": true + } + ] +} diff --git a/aula18.py b/aula18.py new file mode 100644 index 0000000..c40ae78 --- /dev/null +++ b/aula18.py @@ -0,0 +1,24 @@ +# if / elif / else +# se / se não se / se não + +condicao1 = False +condicao2 = False +condicao3 = True +condicao4 = True + +if condicao1: + print('Código para condição 1') + print('Código para condição 1') +elif condicao2: + print('Código para condição 2') +elif condicao3: + print('Código para condição 3') +elif condicao4: + print('Código para condição 4') +else: + print('Nenhuma condição foi satisfeita.') + +if 10 == 10: + print('Outro if') + +print('Fora do if')