[python-nl] Addition and subtraction the results of optellen(), and aftrekken().
berry groenendijk
berry.groenendijk at gmail.com
Mon Dec 21 15:35:32 CET 2009
Bedoel je dit?
#! /user/bin/python
def aftrekken():
som_01 = 90 - 10
return som_01
def optellen():
som_02 = 10 + 10
return som_02
def text_rekenen():
text = """Hier zijn enkele berekeningen van de laatste opdrachten."""
print text
text_rekenen()
print optellen()
print aftrekken()
print optellen() + aftrekken()
print optellen() - aftrekken()
On Mon, Dec 21, 2009 at 3:25 PM, Hendrikus Godvliet <
hendrikusgodvliet at gmail.com> wrote:
> Hello all. I'm new on the mailing list.
>
> I would like to have the opportunity to Addition and
> subtraction the results of optellen(), and aftrekken().
> How can i do this?
>
> #! /user/bin/python2.6
>
> def aftrekken():
> som_01 = 90 - 10
> print som_01
>
> def optellen():
> som_02 = 10 + 10
> print som_02
>
> def text_rekenen():
> text = """Hier zijn enkele berekeningen van de laatste opdrachten."""
> print text
>
>
> text_rekenen()
> optellen()
> aftrekken()
>
>
>
>
>
>
> _______________________________________________
> Python-nl mailing list
> Python-nl at python.org
> http://mail.python.org/mailman/listinfo/python-nl
>
>
--
Berry Groenendijk
[m] 06 13551472
[w] http://www.caerleon.nl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-nl/attachments/20091221/34e987e1/attachment.htm>
More information about the Python-nl
mailing list