Advertisement
ph4x35ccb

main OK

Feb 5th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. import carro, moto
  2.  
  3. uno_vermelho = carro.Carro("vermelho", "Flex", 1.0, 4)
  4. uno_vermelho.ligar()#metodo ligar
  5. uno_vermelho.abastecer(50)#metodo abastecer
  6. uno_vermelho.abastecer(10)
  7. uno_vermelho.acelerar(0)#metodo acelerar
  8. print(f"A quantidade de combustivel é: {uno_vermelho.qtd_combustivel}")
  9.  
  10. moto_vermelha = moto.Moto("vermelha", "gasolina", 1.0, 2)
  11. moto_vermelha.ligar()
  12. print(moto_vermelha.is_ligado)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement