On Tue, Apr 26, 2016 at 12:31:28PM +0530, Santanu Jena wrote:
> Hi,
>
> Pls let me why
> "
> def __init__(self):
>
> "
> declaration required, what's the use of this one.Pls explain me in
> details.
Let's say that you have a class with a method:
# A talking bird, says "Polly wants a cracker" (
Santanu Jena writes:
> I have idea regarding " __init__" method/ class.but still I have
> confusion on "def __init__(self): "
What is the confusion? Please say what you are expecting, and what is
happening instead that confuses you.
(Also, please don't top-post. Instead, post with replies inte
On Tue, Apr 26, 2016 at 2:32 AM, Santanu Jena wrote:
> Hi Oliver.
> I have idea regarding " __init__" method/ class.but still I have confusion
> on "def __init__(self): " Please share your under standing.
A big point of an entry point, conceptually, is to establish
properties that we'd like to
Hi Oliver.
I have idea regarding " __init__" method/ class.but still I have confusion
on "def __init__(self): " Please share your under standing.
Thanks & Regards,
San
On Tue, Apr 26, 2016 at 2:14 PM, Oliver Bestwalter
wrote:
> Hi Santanu,
>
> without knowing from which level of understanding
Hi Santanu,
without knowing from which level of understanding you are asking, it is
hard to say what we should answer here, so let me ask a few questions:
Do you understand the concept of classes already? Maybe from other
programming languages, or are you a complete beginner? If you are a
beginne
On 26/04/16 08:01, Santanu Jena wrote:
> Hi,
>
> Pls let me why
> "
> def __init__(self):
>
> "
> declaration required, what's the use of this one.Pls explain me in
> details.
It is used to initialise object instances.
For example if you define a class Rectangle that has a length and width
and
Hi,
Pls let me why
"
def __init__(self):
"
declaration required, what's the use of this one.Pls explain me in
details.
Thanks in advance.
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/ma