From f9026c6b398ac6d9d3374ab855a8843e16d664e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20Ot=C3=A1vio?= Date: Sat, 19 Nov 2022 19:11:29 -0300 Subject: [PATCH] =?UTF-8?q?(Parte=204)=20Eletr=C3=B4nico,=20Smartphone=20c?= =?UTF-8?q?om=20Mixin=20e=20a=20uni=C3=A3o=20de=20tudo=20at=C3=A9=20aqui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aula141/log.txt | 2 ++ aula141/main.py | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/aula141/log.txt b/aula141/log.txt index 8a1bf95..529f3f4 100644 --- a/aula141/log.txt +++ b/aula141/log.txt @@ -9,3 +9,5 @@ Success: Galaxy S está ligado (Smartphone) Error: iPhone está desligado (Smartphone) Success: Galaxy S está ligado (Smartphone) Error: iPhone está desligado (Smartphone) +Success: Galaxy S está ligado (Smartphone) +Error: iPhone está desligado (Smartphone) diff --git a/aula141/main.py b/aula141/main.py index 6c4d372..35e993a 100644 --- a/aula141/main.py +++ b/aula141/main.py @@ -1,3 +1,7 @@ -conta_1 = ((1 + 1) ** (5 + 5)) +from eletronico import Smartphone -print(conta_1) +galaxy_s = Smartphone('Galaxy S') +iphone = Smartphone('iPhone') + +galaxy_s.ligar() +iphone.desligar()