Hey Guys,
i'm running Python 3.3.2 on Windows 7 64 Bit
I am writing a little script for practice and got a little problem.
I wrote a class which got two points in the constructor (p1 and p2). With
the function distanceOf from my class i measure the distance between these
two points. Everything wo
22/10/2013 10:25, Sven Hennig wrote:
>
> > Hello, I would like to learn a programming language and have decided to
> use
> > Python. I have some programming experience and doing well in Python. What
> > really causes me problems is OOP.
> > I'm just dont get it...
xamples of such Class Dog and the function is bark. Has
anyone an OOP example for me as it is really used in real code, so I can
better understand the concept? I do not know why this is so hard for me.
Greetings
Sven
___
Tutor maillist - Tutor@python.org
Akhmad
> ___
> Tutor maillist - Tutor@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
--
./Sven
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
calculating the average.
def average(s):
return sum(s) / len(s)
# convert the list of strings to a list of floats
tt = [float(x) for x in list_of_lists1]
avg = average(tt)
--
./Sven
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
to jailbreak http://omz-software.com/pythonista/
although I have no idea how featured that is.
Hope that helps
--
./Sven
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor