User-submitted Python Projects

39
1265 reads
calcpage123's picture

Submitted by

calcpage123
Tags:

36
1477 reads

February 16, 2013

Python-Composition


Inheritance is useful, but another way to do the exact same thing is just to use other classes and modules, rather than rely on implicit inheritance.

28
1202 reads

February 16, 2013

Override Explicitly


The problem with implicitly having functions called is sometimes we want the child to behave differently.

41
1440 reads

February 16, 2013

Python- Inheritance


Inheritance is the ability to define a new class that is a modified version of an existing class.

33
1238 reads

February 15, 2013

40
1318 reads

February 15, 2013

Object Methods


Object Methods:

A Method is a special kind of function that is defined in a class definition.

We have already discussed that classes/objects can have methods just like functions except

36
1336 reads

February 15, 2013

133
1653 reads

February 15, 2013

Type Of Triangle


This example shows use of if-elif-else in solving difficult decision problems.

132
2468 reads

February 15, 2013

Max Of Three


This example illustrates how to use if-elif-else condition.

274
2303 reads

February 15, 2013

Checking a Condition


This example illustrates how to check any and every element of a list. If the condition is not satisfied by any element,the LIST COMPREHENSION will create an empty list.