O Debugger do VS Code e o interpretador do Python lendo os códigos

This commit is contained in:
Luiz Otávio
2022-10-25 14:06:54 -03:00
parent f18c3ecaa5
commit 3b50436ea5
2 changed files with 40 additions and 0 deletions

16
.vscode/launch.json vendored Normal file
View File

@@ -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
}
]
}

24
aula18.py Normal file
View File

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