O Debugger do VS Code e o interpretador do Python lendo os códigos
This commit is contained in:
16
.vscode/launch.json
vendored
Normal file
16
.vscode/launch.json
vendored
Normal 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
24
aula18.py
Normal 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')
|
||||
Reference in New Issue
Block a user