Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import carro, moto
- uno_vermelho = carro.Carro("vermelho", "Flex", 1.0, 4)
- uno_vermelho.ligar()#metodo ligar
- uno_vermelho.abastecer(50)#metodo abastecer
- uno_vermelho.abastecer(10)
- uno_vermelho.acelerar(0)#metodo acelerar
- print(f"A quantidade de combustivel é: {uno_vermelho.qtd_combustivel}")
- moto_vermelha = moto.Moto("vermelha", "gasolina", 1.0, 2)
- moto_vermelha.ligar()
- print(moto_vermelha.is_ligado)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement