Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

creating python classes

class car:
  def __init__(self, model, color):
    self.model = model
    self.color = color
         
tesla = car("model 3", "black")
Source by intellipaat.com #
 
PREVIOUS NEXT
Tagged: #creating #python #classes
ADD COMMENT
Topic
Name
3+2 =