Guest User

Untitled

a guest
Dec 7th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. class Car:
  2. def __init__(self, ID, name, tire, engine):
  3. self.ID = ID
  4. self.name = name
  5. self.tire = tire
  6. self.engine = engine
  7.  
  8. def __str__(self):
  9. return "ID: {0} Name:{1} Tire: {2} Engine: {3}".format(self.ID, self.name, self.tire, self.engine)
Add Comment
Please, Sign In to add comment