Python Classes

Terry Reedy tjreedy at udel.edu
Mon Aug 4 05:11:28 EDT 2014


On 8/4/2014 4:40 AM, Shubham Tomar wrote:
> Hi,
>
> Python is the first programming language that I'm learning.
> I'm confused by the idea of classes and intimidated by syntax defining
> classes. I understand that you define classes to have re-usable methods
> and procedures, but, don't functions serve the same purpose.
> Can someone please explain the idea of classes and what /things /like
> "__init__", "Object" and "self" mean ?

If you have not, read and work examples based on our fine tutorial. 
Classes are intentionally the last chapter about syntax.

If you have read up to and into chapter 9, and are stuck on a particular 
section, tell us.

-- 
Terry Jan Reedy




More information about the Python-list mailing list