[python-nl] Sprite

Michiel Overtoom motoom at xs4all.nl
Wed Jun 4 09:57:42 CEST 2014


On Jun 4, 2014, at 09:14, Marc Stevens wrote:

> Maar die werken met heel complex met classes en def . Dat is me nog te ingewikkeld.

Dan is het misschien beter om eerst wat python tutorials door te werken om erachter te komen wat classes en functies zijn. Want die worden in bijna alle niet-triviale python programma's gebruikt. Zonder functies zou een programma al snel een onoverzichtelijk zootje worden.

En moeilijk is het niet ;-)


    def groet(naam):
        print "Hallo", naam
        print "Hoe gaat 't ermee?"

    groet("Jan")
    groet("Marie")
    groet(42)

Groets,

-- 
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



More information about the Python-nl mailing list