I have two questions:

1)  When should I use "def __init__(self):" when I create a class?

2)  Would these two classes have the same effect?

class Name:
        def __init__(self):
                man = Marcus
                woman = Jasmine
                return self.man, self.woman



class Name:
        man = Marcus
        woman = Jasmine
        return man, woman
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to