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
class Conta(object): | |
def __init__(self, num_conta,nome,saldo=0): | |
self.num_conta = num_conta | |
self.nome = nome | |
self.saldo = saldo | |
def alterar_nome(self,nome): | |
self.nome = nome | |
def deposito(self,valor): |
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
class Pessoa(): | |
def __init__(self,nome,idade): | |
self.nome = nome | |
self.idade = int(input('Quantos anos você tem: ') | |
def verifica(self): | |
maior = '' | |
if self.idade > 18: | |
maior = 'é' | |
else: |
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
x = int(input('Número: ')) | |
numero = x | |
fatorial = 1 | |
while x != 1: | |
fatorial *= x | |
x -= 1 | |
print ("Fatorial de {} é {}".format(numero,fatorial)) |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>IMC</title> | |
</head> | |
<body> | |
<form> | |
</form> |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Media_Aluno</title> | |
</head> | |
<body> | |
<?php | |
$resultado = 0; |
NewerOlder