Usando a função input para coletar dados do usuário
This commit is contained in:
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
@@ -1,8 +1,9 @@
|
|||||||
{
|
{
|
||||||
"window.zoomLevel": 4,
|
"window.zoomLevel": 1,
|
||||||
"workbench.startupEditor": "none",
|
"workbench.startupEditor": "none",
|
||||||
"explorer.compactFolders": false,
|
"explorer.compactFolders": false,
|
||||||
"editor.fontSize": 24,
|
"editor.fontSize": 30,
|
||||||
|
"terminal.integrated.fontSize": 26,
|
||||||
"editor.rulers": [80, 120],
|
"editor.rulers": [80, 120],
|
||||||
"workbench.colorTheme": "OM Theme (Default Dracula Italic)",
|
"workbench.colorTheme": "OM Theme (Default Dracula Italic)",
|
||||||
"workbench.iconTheme": "material-icon-theme",
|
"workbench.iconTheme": "material-icon-theme",
|
||||||
|
|||||||
10
aula15.py
Normal file
10
aula15.py
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# nome = input('Qual o seu nome? ')
|
||||||
|
# print(f'O seu nome é {nome}')
|
||||||
|
|
||||||
|
numero_1 = input('Digite um número: ')
|
||||||
|
numero_2 = input('Digite outro número: ')
|
||||||
|
|
||||||
|
int_numero_1 = int(numero_1)
|
||||||
|
int_numero_2 = int(numero_2)
|
||||||
|
|
||||||
|
print(f'A soma dos números é: {int_numero_1 + int_numero_2}')
|
||||||
Reference in New Issue
Block a user