This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var1 = int(input('Escolha um numero : ')) | |
var2 = int(input('Escolha outro numero : ')) | |
s = var1 + var2 | |
print('A soma dos dois numeros escolhidos será :{}'.format(s)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var1 = int(input('Digite um numero : ')) | |
var2 = int(input('Digite outro numero : ')) | |
s = var1 + var2 | |
print('A soma entre {} e {} valerá {}'.format(var1, var2, s)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var1 = input('Digite algo: ') | |
print('O tipo primitivo desse valor é', type(var1)) | |
print('Só tem espaços?', var1.isspace()) | |
print('É um número?', var1.isnumeric()) | |
print('É alfabético?', var1.isalpha()) | |
print('É alfanumérico?', var1.isalnum()) | |
print('Está em maiúsculas?', var1.isupper()) | |
print('Está em minúsculas?', var1.islower()) | |
print('Está capitalizada?', var1.isprintable()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var1 = (int(input('Digite um numero :'))) | |
var2 = var1 - 1 | |
var3 = var1 + 1 | |
print('Analisando o valor {}, seu antecessor é {} e o sucessor é {}'.format(var1, var2, var3)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var1 = int(input('Escolha um numero :')) | |
var2 = var1 * 2 | |
var3 = var1 * 3 | |
var4 = var1 ** (1/2) | |
print('O dobro de {} vale {}'.format(var1, var2)) | |
print('O triplo de {} vale {}'.format(var1, var3)) | |
print('A raiz quadrado de {} é igaul a {}'.format(var1, var4)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
equipamentos = [] | |
valores = [] | |
numero_serial = [] | |
departamento = [] | |
resposta = 'S' | |
while resposta=='S': | |
equipamentos.append(input('Equipamentos: ')) | |
valores.append(float(input('Valor: '))) | |
numero_serial.append(input('Número Serial: ')) | |
departamento.append(input('Departamento: ')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inventario=[] | |
resposta = "S" | |
#adicionar item no inventario | |
while resposta == "S": | |
equipamento=[input("Equipamento: "), | |
float(input("Valor: ")), | |
int(input("Número Serial: ")), | |
input("Departamento: ")] | |
inventario.append(equipamento) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p1 = float(input('Qual a nota da prova 1 : ')) | |
p2 = float(input('Qual a nota da prova 2 : ')) | |
t = float(input('Qual a nota de trabalho : ')) | |
a = float(input('Qual a nota atitudinal : ')) | |
s = p1 + p2 + t + a | |
d = s / 4 | |
print('A sua média no semestre de : {}'.format(d)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>UNES - Contato</title> | |
</head> | |
<body background="fundo2.png"> | |
<table width="900" align="center"> | |
<tr> | |
<td><img src="logo.png"></td> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Holocausto: o que foi, consequências, número de mortos e filmes</title> | |
</head> | |
<body> | |
<h3><b>Holocausto</b></h3> |
OlderNewer