diff --git a/.vscode/settings.json b/.vscode/settings.json index f278b59..f1d157e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -18,12 +18,12 @@ "editor.defaultFormatter": "ms-python.python", "editor.tabSize": 4, "editor.insertSpaces": true, - "editor.formatOnSave": true, - "editor.codeActionsOnSave": { - "source.fixAll": true, - "source.fixAll.unusedImports": false, - "source.organizeImports": true - } + "editor.formatOnSave": true + // "editor.codeActionsOnSave": { + // "source.fixAll": true, + // "source.fixAll.unusedImports": false, + // "source.organizeImports": true + // } }, "python.languageServer": "Pylance", "python.formatting.autopep8Args": [ diff --git a/aula46.py b/aula46.py new file mode 100644 index 0000000..54909b9 --- /dev/null +++ b/aula46.py @@ -0,0 +1,13 @@ +for i in range(10): + if i == 2: + print('i é 2, pulando...') + continue + + if i == 8: + print('i é 8, seu else não executará') + break + + for j in range(1, 3): + print(i, j) +else: + print('For completo com sucesso!')