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')