fork download
  1. class car:
  2. model="Audi"
  3. year = 2017
  4. color = "Green"
  5. def start(self):
  6. print("Поехали")
  7. def stop(self):
  8. print("Остановитесь!")
  9. car1 = car()
  10. car1.start()
  11. car1.stop()
  12. #print (car1.model)
  13. #print (car1.year, car1.color)
Success #stdin #stdout 0.02s 9088KB
stdin
Standard input is empty
stdout
Поехали
Остановитесь!