Le Thu, 26 Feb 2009 12:38:27 +0530,
Abhishek Kumar s'exprima ainsi:
> hello list,
>
> Below is the sample code of a class.
>
>
> import
>
> Class ABC:
> def __init__(self,a,b,c):
> statement 1
> statement 2
>
Here is a good book if you are already familiar with other languages.
http://diveintopython.org/object_oriented_framework/instantiating_classes.html
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
@Abhishek,
On 2/26/09, Abhishek Kumar wrote:
> hello list,
>
> Below is the sample code of a class.
>
>
> import
>
> Class ABC:
> def __init__(self,a,b,c):
> statement 1
> statement 2
> def func(x,y):
>
On Thu, 26 Feb 2009 12:38:27 +0530, Abhishek Kumar wrote:
> hello list,
>
You need to read through the tutorial first: http://docs.python.org/
tutorial/
If there are still things you don't understand, please ask again.
As for your question, here is a sample useless python code:
class MyClass(
On Thu, 26 Feb 2009 12:38:27 +0530, Abhishek Kumar wrote:
> hello list,
>
You need to read through the tutorial first: http://docs.python.org/
tutorial/
If there are still things you don't understand, please ask again.
As for your question, here is a sample useless python code:
class MyClass(
hello list,
Below is the sample code of a class.
import
Class ABC:
def __init__(self,a,b,c):
statement 1
statement 2
def func(x,y):
statement 1
state